From 81d3766eea47bb8867cc615f87656c51b97c8985 Mon Sep 17 00:00:00 2001 From: gwenn Date: Fri, 15 Mar 2024 19:34:52 +0100 Subject: [PATCH] Fix clippy warnings --- src/history.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/history.rs b/src/history.rs index d59f4ab17..0dc289db7 100644 --- a/src/history.rs +++ b/src/history.rs @@ -587,7 +587,7 @@ impl FileHistory { )) = self.path_info { if previous_path.as_path() != path { - *previous_path = path.to_owned(); + path.clone_into(previous_path); } *previous_modified = modified; *previous_size = size;