From d57e10663a2f0c6999c04726fac9a9a18ba4a97d Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 10 Oct 2021 21:35:47 +0200 Subject: Format --- src/actions/update.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/actions/update.rs') diff --git a/src/actions/update.rs b/src/actions/update.rs index 05379c1..081be72 100644 --- a/src/actions/update.rs +++ b/src/actions/update.rs @@ -97,13 +97,13 @@ fn get_new_history_for_file( let changes = ContentChange::diff(&old_content, &new_content); - if !changes.is_empty() { + if !changes.is_empty() { let mut new_history = file_history; new_history.add_change(FileChange { change_index: cursor + 1, variant: FileChangeVariant::Updated(changes), }); - + Ok(Some((history_file, new_history))) } else { Ok(None) -- cgit 1.4.1