Skip to content

Commit

Permalink
local_working_copy: remove useless Result wrapping in snapshot()
Browse files Browse the repository at this point in the history
  • Loading branch information
yuja committed Dec 3, 2024
1 parent d2c0d92 commit 934a2ba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/src/local_working_copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -971,12 +971,11 @@ impl TreeState {
.map(|(path, _state)| path.to_owned())
.collect()
});
trace_span!("process tree entries").in_scope(|| -> Result<(), SnapshotError> {
trace_span!("process tree entries").in_scope(|| {
while let Ok((path, tree_values)) = tree_entries_rx.recv() {
tree_builder.set_or_remove(path, tree_values);
}
Ok(())
})?;
});
trace_span!("process present files").in_scope(|| {
while let Ok(path) = present_files_rx.recv() {
deleted_files.remove(&path);
Expand Down

0 comments on commit 934a2ba

Please sign in to comment.