diff options
author | Kyohei Uto <im@kyoheiu.dev> | 2023-08-25 05:40:45 +0900 |
---|---|---|
committer | Kyohei Uto <im@kyoheiu.dev> | 2023-08-25 05:40:45 +0900 |
commit | bbfd944b10e3565b9bd51e59d84fa9bab70e1cf9 (patch) | |
tree | d3cb0f1691545e42f3c3d7db636af06e5996a394 | |
parent | 45521dc6ce5dd5f4281aba16782c1f5c142fe0b0 (diff) |
clippy
-rw-r--r-- | src/state.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/state.rs b/src/state.rs index 6ace91a..8e2449f 100644 --- a/src/state.rs +++ b/src/state.rs @@ -220,19 +220,14 @@ pub struct ItemInfo { pub permissions: Option<u32>, } -#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)] +#[derive(Default, Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)] pub enum FileType { Directory, + #[default] File, Symlink, } -impl Default for FileType { - fn default() -> Self { - FileType::File - } -} - impl State { /// Initialize the state of the app. pub fn new(session_path: &std::path::Path) -> Result<Self, FxError> { |