mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:45:24 +00:00
Fix crash on missing parent
This commit is contained in:
parent
2ac5c830c1
commit
a8f4faa6e4
2 changed files with 16 additions and 9 deletions
|
@ -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)?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue