Fix clippy::single_char_pattern

This commit is contained in:
ice_iix 2022-08-28 07:24:49 -07:00
parent 76b285ae61
commit 429e3701c1
2 changed files with 2 additions and 2 deletions

View File

@ -370,7 +370,7 @@ impl Console {
}
}
let mut file = &record.file().unwrap_or("").replace("\\", "/")[..];
let mut file = &record.file().unwrap_or("").replace('\\', "/")[..];
if let Some(pos) = file.rfind("src/") {
file = &file[pos + 4..];
}

View File

@ -99,7 +99,7 @@ impl Logo {
let mut texts = String::new();
file.read_to_string(&mut texts).unwrap();
for line in texts.lines() {
text_strings.push(line.to_owned().replace("\r", ""));
text_strings.push(line.to_owned().replace('\r', ""));
}
}
let mut r: rand_pcg::Pcg32 =