We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d01c695 commit 3e76fc9Copy full SHA for 3e76fc9
src/command/path_cache.rs
@@ -47,7 +47,7 @@ impl CommandPathCache {
47
if let Some(cached_value) = cache.get(command_path.as_ref()) {
48
return Ok(match cached_value {
49
CacheValue::NotResolvable => None,
50
- CacheValue::Resolved(cached_path) => Some(Cow::Owned(cached_path.to_path_buf())),
+ CacheValue::Resolved(cached_path) => Some(Cow::Owned(cached_path.clone())),
51
});
52
}
53
0 commit comments