clippy: Fix single-char pattern to be char
@@ -19,7 +19,7 @@ static TEST_CASES: &[&[&str]] = &[
fn repath(origin: &str) -> String {
// Add doc prefix and rewrite string paths for the current platform
let with_prefix = "share/doc/rust/html/".to_owned() + origin;
- let splitted = with_prefix.split("/");
+ let splitted = with_prefix.split('/');
let repathed = splitted.fold(PathBuf::new(), |acc, e| acc.join(e));
repathed.into_os_string().into_string().unwrap()
}
