style: code style

This commit is contained in:
2020-07-26 14:59:30 +08:00
parent 10662a9e6e
commit 748fb8eca0

View File

@@ -62,8 +62,9 @@ fn main() -> std::io::Result<()> {
println!("Couldn't access files. Error {}", e); println!("Couldn't access files. Error {}", e);
Err(e).unwrap() Err(e).unwrap()
} }
} { }
{
let path = entry.unwrap(); let path = entry.unwrap();
let path = Path::new(&path).strip_prefix(env::current_dir().unwrap().to_str().unwrap()).unwrap(); let path = Path::new(&path).strip_prefix(env::current_dir().unwrap().to_str().unwrap()).unwrap();
if !path.starts_with("target/") { if !path.starts_with("target/") {
@@ -73,8 +74,6 @@ fn main() -> std::io::Result<()> {
p.parse(path); p.parse(path);
} }
} }
} }
Ok(()) Ok(())