Skip to content

Commit 3e76fc9

Browse files
Use clone.
1 parent d01c695 commit 3e76fc9

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
@@ -47,7 +47,7 @@ impl CommandPathCache {
4747
if let Some(cached_value) = cache.get(command_path.as_ref()) {
4848
return Ok(match cached_value {
4949
CacheValue::NotResolvable => None,
50-
CacheValue::Resolved(cached_path) => Some(Cow::Owned(cached_path.to_path_buf())),
50+
CacheValue::Resolved(cached_path) => Some(Cow::Owned(cached_path.clone())),
5151
});
5252
}
5353

0 commit comments

Comments
 (0)