style: code style
This commit is contained in:
17
src/main.rs
17
src/main.rs
@@ -62,22 +62,21 @@ fn main() -> std::io::Result<()> {
|
||||
println!("Couldn't access files. Error {}", e);
|
||||
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/"){
|
||||
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);
|
||||
//execute each parsers on the current file
|
||||
for p in &parsers {
|
||||
p.parse(path);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Ok(())
|
||||
Ok(())
|
||||
}
|
||||
else{
|
||||
let mut tokens : Vec<Token> = Vec::new();
|
||||
|
||||
Reference in New Issue
Block a user