diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-03-30 15:11:08 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-03-30 15:11:08 -0400 |
commit | 554f06d72aeb639548314336b2318e14f8ffcc7e (patch) | |
tree | 4f3346fdd7b9302ccaa82089cd7eceff4d8b28de /src/sort.rs | |
parent | f56511becd2be285ff2ce74269113384856aaa95 (diff) |
move view struct out of Context and pass in as a separate argument
- rename static variables to all caps
- change index to be Option<usize> rather than i32 where -1 means
the directory is empty
Diffstat (limited to 'src/sort.rs')
-rw-r--r-- | src/sort.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sort.rs b/src/sort.rs index 084ae57..a93d7ac 100644 --- a/src/sort.rs +++ b/src/sort.rs @@ -88,7 +88,7 @@ fn filter_default( match result { Ok(direntry) => match structs::JoshutoDirEntry::from(&direntry) { Ok(s) => Some(s), - Err(e) => None, + Err(_) => None, }, Err(_) => None, } @@ -105,7 +105,7 @@ fn filter_hidden_files( } else { match structs::JoshutoDirEntry::from(&direntry) { Ok(s) => Some(s), - Err(e) => None, + Err(_) => None, } } } |