Skip to content

Commit

Permalink
I hate rust analyzer on vs-code
Browse files Browse the repository at this point in the history
Signed-off-by: Tarek <[email protected]>
  • Loading branch information
tareknaser committed Aug 6, 2024
1 parent 75a8683 commit b0441f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs-index/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ impl<Id: ResourceId> ResourceIndex<Id> {
for entry in fs::read_dir(root_path.as_ref())? {
let entry = entry?;
let path = entry.path();
printl!("Found file: {:?}", path);
println!("Found file: {:?}", path);
}

let root_path = root_path.as_ref();
Expand All @@ -289,7 +289,7 @@ impl<Id: ResourceId> ResourceIndex<Id> {
for entry in fs::read_dir(&root_path)? {
let entry = entry?;
let path = entry.path();
printl!("Found file: {:?}", path);
println!("Found file: {:?}", path);
}

let mut id_to_paths: HashMap<Id, HashSet<PathBuf>> = HashMap::new();
Expand All @@ -299,14 +299,14 @@ impl<Id: ResourceId> ResourceIndex<Id> {
let paths = discover_paths(&root_path)?;
// Print discovered paths
for path in &paths {
printl!("Discovered path: {:?}", path);
println!("Discovered path: {:?}", path);
}
let entries: HashMap<PathBuf, Timestamped<Id>> =
scan_entries(&root_path, paths);

// Print entries
for (path, id) in &entries {
printl!("Found entry: {:?} -> {:?}", path, id);
println!("Found entry: {:?} -> {:?}", path, id);
}

// Strip the root path from the entries
Expand Down

0 comments on commit b0441f4

Please sign in to comment.