style: code style
This commit is contained in:
27
src/main.rs
27
src/main.rs
@@ -62,22 +62,21 @@ 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 = Path::new(&path).strip_prefix(env::current_dir().unwrap().to_str().unwrap()).unwrap();
|
|
||||||
if !path.starts_with("target/"){
|
|
||||||
let path = path.to_str().unwrap();
|
|
||||||
//execute each parsers on the current file
|
|
||||||
for p in &parsers {
|
|
||||||
p.parse(path);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
{
|
||||||
|
let path = entry.unwrap();
|
||||||
|
let path = Path::new(&path).strip_prefix(env::current_dir().unwrap().to_str().unwrap()).unwrap();
|
||||||
|
if !path.starts_with("target/") {
|
||||||
|
let path = path.to_str().unwrap();
|
||||||
|
//execute each parsers on the current file
|
||||||
|
for p in &parsers {
|
||||||
|
p.parse(path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
let mut tokens : Vec<Token> = Vec::new();
|
let mut tokens : Vec<Token> = Vec::new();
|
||||||
|
|||||||
Reference in New Issue
Block a user