From 934a2ba478227371814d63c3f85760f320dd487d Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Mon, 2 Dec 2024 20:26:13 +0900 Subject: [PATCH] local_working_copy: remove useless Result wrapping in snapshot() --- lib/src/local_working_copy.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);