Compare commits

..

1 commit

Author SHA1 Message Date
f682a12c91 feat: scan for TODO and FIXME markers 2024-09-18 11:16:52 +01:00

View file

@ -87,7 +87,7 @@ fn scan_files(config: &Config, found_markers: &mut FoundMarkers) -> Result<()> {
}
fn scan_dir(dir: &Path, config: &Config, found_markers: &mut FoundMarkers) -> Result<()> {
println!("dir : {}", dir.to_string_lossy());
println!("dir : {dir:?}");
let read_dir = config.fs.dir_read(dir)?;
for entry in read_dir {
match entry? {
@ -100,7 +100,7 @@ fn scan_dir(dir: &Path, config: &Config, found_markers: &mut FoundMarkers) -> Re
}
fn scan_file(file: &Path, config: &Config, found_markers: &mut FoundMarkers) -> Result<()> {
println!("file: {}", file.to_string_lossy());
println!("file: {file:?}");
config
.fs
.file_read_to_string(file)?