Skip to content

Commit 6246aa2

Browse files
Fix clippy warning.
1 parent 07b90e8 commit 6246aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/command/path_cache.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl CommandPathCache {
4545
return Ok(match cached_value {
4646
CacheValue::NotResolvable => None,
4747
CacheValue::Resolved(cached_path) => {
48-
command_and_args.command_path = cached_path.clone();
48+
command_and_args.command_path.clone_from(cached_path);
4949
Some(command_and_args)
5050
}
5151
});

0 commit comments

Comments
 (0)