diff options
Diffstat (limited to 'src/fs/entry.rs')
-rw-r--r-- | src/fs/entry.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fs/entry.rs b/src/fs/entry.rs index d88c0a5..a4e2672 100644 --- a/src/fs/entry.rs +++ b/src/fs/entry.rs @@ -26,14 +26,13 @@ impl JoshutoDirEntry { let path = direntry.path(); let metadata = JoshutoMetadata::from(&path)?; - let dir_entry = JoshutoDirEntry { + Ok(JoshutoDirEntry { name, path, metadata, selected: false, marked: false, - }; - Ok(dir_entry) + }) } pub fn file_name(&self) -> &str { |