Fix clippy::single_char_pattern
This commit is contained in:
parent
76b285ae61
commit
429e3701c1
|
@ -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..];
|
||||
}
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue