Skip to content

Commit d1a9199

Browse files
committed
style: run rustfmt over watcher skip changes
1 parent c9b4297 commit d1a9199

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

crates/codegraph-extract/src/orchestrator.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ impl Orchestrator {
7575
});
7676
}
7777
}
78-
let results: Vec<_> = matches
79-
.par_iter()
80-
.map(|fm| parse_one(fm, db))
81-
.collect();
78+
let results: Vec<_> = matches.par_iter().map(|fm| parse_one(fm, db)).collect();
8279
let mut parsed = Vec::with_capacity(results.len());
8380
let mut skipped = 0u64;
8481
for r in results {

crates/codegraph-extract/tests/extract.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,21 @@ fn sync_paths_skips_mtime_only_touch() {
105105
)
106106
.unwrap();
107107

108-
orch.sync_paths(&db, std::slice::from_ref(&fixture)).unwrap();
108+
orch.sync_paths(&db, std::slice::from_ref(&fixture))
109+
.unwrap();
109110
let indexed = db.stats().unwrap().files;
110111
assert!(indexed >= 1, "fixture should be indexed");
111112

112113
let later = SystemTime::now() + Duration::from_secs(5);
113-
filetime::set_file_mtime(fixture.as_std_path(), filetime::FileTime::from_system_time(later))
114-
.unwrap();
114+
filetime::set_file_mtime(
115+
fixture.as_std_path(),
116+
filetime::FileTime::from_system_time(later),
117+
)
118+
.unwrap();
115119

116-
let stats = orch.sync_paths(&db, std::slice::from_ref(&fixture)).unwrap();
120+
let stats = orch
121+
.sync_paths(&db, std::slice::from_ref(&fixture))
122+
.unwrap();
117123
assert_eq!(stats.files, 0, "mtime-only touch must not re-index");
118124
assert!(stats.skipped >= 1, "expected skip, got {:?}", stats);
119125
}

0 commit comments

Comments
 (0)