From e576dad548bd1ff6e3163da3b2ab662c7b76ca53 Mon Sep 17 00:00:00 2001 From: tison Date: Tue, 11 Jun 2024 10:52:44 +0800 Subject: [PATCH] speed up more Signed-off-by: tison --- fmt/src/git.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fmt/src/git.rs b/fmt/src/git.rs index b316641..977864e 100644 --- a/fmt/src/git.rs +++ b/fmt/src/git.rs @@ -106,17 +106,17 @@ pub fn resolve_file_attrs(repo: &Repository) -> anyhow::Result anyhow::Result(Default::default()) }, )?; - prev_commit = this_commit; + prev_tree = tree; cache.clear_resource_cache(); }