diff --git a/lib/src/local_working_copy.rs b/lib/src/local_working_copy.rs index 619aecc446..cd5f85898c 100644 --- a/lib/src/local_working_copy.rs +++ b/lib/src/local_working_copy.rs @@ -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);