Fix warnings surfaced in Rust 1.71

This commit is contained in:
Max Brunsfeld 2023-08-02 09:19:23 -07:00
parent 4c7d60ed13
commit a127b0d3e6
7 changed files with 5 additions and 9 deletions

View file

@ -2369,7 +2369,7 @@ impl BackgroundScannerState {
}
// Remove any git repositories whose .git entry no longer exists.
let mut snapshot = &mut self.snapshot;
let snapshot = &mut self.snapshot;
let mut repositories = mem::take(&mut snapshot.git_repositories);
let mut repository_entries = mem::take(&mut snapshot.repository_entries);
repositories.retain(|work_directory_id, _| {