diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-29 18:22:44 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-30 11:05:47 -0400 |
commit | 36d8299f224b044139d52c0f65eb66be4c25a5d0 (patch) | |
tree | 5f99fdfff153ab9f39c1d3ed77f9f18ef3c2d5d3 /src/sort.rs | |
parent | 4bbe0969006eab7cfe3a47231d5e002b5259e19b (diff) |
cargo clippy
Diffstat (limited to 'src/sort.rs')
-rw-r--r-- | src/sort.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort.rs b/src/sort.rs index c78541f..4f59449 100644 --- a/src/sort.rs +++ b/src/sort.rs @@ -67,7 +67,7 @@ fn filter_hidden(result: &Result<fs::DirEntry, std::io::Error>) -> bool { Ok(entry) => { let file_name = entry.file_name(); if let Some(file_name) = file_name.to_str() { - !file_name.starts_with(".") + !file_name.starts_with('.') } else { false } |