Fix crash on missing parent

This commit is contained in:
Charlie Marsh 2022-09-07 22:40:25 -04:00
parent 2ac5c830c1
commit a8f4faa6e4
2 changed files with 16 additions and 9 deletions

View file

@ -13,6 +13,7 @@ use crate::settings::Settings;
use crate::{autofix, cache, fs};
fn check_path(path: &Path, settings: &Settings, autofix: &autofix::Mode) -> Result<Vec<Check>> {
println!("{:?}", path);
// Read the file from disk.
let contents = fs::read_file(path)?;