fmt: applied formatting
This commit is contained in:
+1
-5
@@ -79,11 +79,7 @@ fn translate_unix_home_style(s: &str, prefix: &str) -> Option<PathBuf> {
|
|||||||
|
|
||||||
fn translate_windows_users_path(s: &str) -> Option<PathBuf> {
|
fn translate_windows_users_path(s: &str) -> Option<PathBuf> {
|
||||||
let bytes = s.as_bytes();
|
let bytes = s.as_bytes();
|
||||||
if bytes.len() < 4
|
if bytes.len() < 4 || !bytes[0].is_ascii_alphabetic() || bytes[1] != b':' || bytes[2] != b'\\' {
|
||||||
|| !bytes[0].is_ascii_alphabetic()
|
|
||||||
|| bytes[1] != b':'
|
|
||||||
|| bytes[2] != b'\\'
|
|
||||||
{
|
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user