mirror of
https://github.com/denoland/deno.git
synced 2025-01-11 00:21:05 -05:00
fix clippy (#4875)
This commit is contained in:
parent
f952d69eec
commit
0da042c6fe
1 changed files with 3 additions and 3 deletions
|
@ -55,7 +55,7 @@ async fn check_source_files(
|
|||
}
|
||||
}
|
||||
Err(e) => {
|
||||
let _ = output_lock.lock().unwrap();
|
||||
let _g = output_lock.lock().unwrap();
|
||||
eprintln!("Error checking: {}", &file_path_str);
|
||||
eprintln!(" {}", e);
|
||||
}
|
||||
|
@ -108,12 +108,12 @@ async fn format_source_files(
|
|||
if formatted_text != file_contents {
|
||||
fs::write(&file_path, formatted_text)?;
|
||||
formatted_files_count.fetch_add(1, Ordering::SeqCst);
|
||||
let _ = output_lock.lock().unwrap();
|
||||
let _g = output_lock.lock().unwrap();
|
||||
println!("{}", file_path_str);
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
let _ = output_lock.lock().unwrap();
|
||||
let _g = output_lock.lock().unwrap();
|
||||
eprintln!("Error formatting: {}", &file_path_str);
|
||||
eprintln!(" {}", e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue