diff options
author | Blaž Hrastnik | 2021-08-20 01:30:45 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-20 01:43:22 +0000 |
commit | cbd39d67a419aa0442af6d81b5b41ad518dc5fff (patch) | |
tree | 5c244407664f104fdabeb77b7e93dbf42088a99e /helix-term/src/ui | |
parent | da8810809a97d09f9a3117650f3f4364fa8dd20c (diff) |
minor: Refactor commands.rs a bit more
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r-- | helix-term/src/ui/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index d1af0e48..390f1a66 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -76,7 +76,7 @@ pub fn regex_prompt( pub fn file_picker(root: PathBuf) -> FilePicker<PathBuf> { use ignore::Walk; use std::time; - let files = Walk::new(root.clone()).filter_map(|entry| { + let files = Walk::new(&root).filter_map(|entry| { let entry = entry.ok()?; // Path::is_dir() traverses symlinks, so we use it over DirEntry::is_dir if entry.path().is_dir() { |