summaryrefslogtreecommitdiffstats
path: root/src/repository/repository.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-01-13 08:51:31 +0100
committerMatthias Beyer <mail@beyermatthias.de>2021-01-15 23:21:39 +0100
commitb9336d3a9402cec61f64ba9a15f9482100eb45f7 (patch)
treecc7d16672678a7bdc2b1b341159306143c4dd0a1 /src/repository/repository.rs
parentaea2ad67fc1f6a1ad3691116ec884934680b08bd (diff)
Fix clippy: single-character string constant used as pattern
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/repository/repository.rs')
-rw-r--r--src/repository/repository.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository/repository.rs b/src/repository/repository.rs
index 1298606..7b090ae 100644
--- a/src/repository/repository.rs
+++ b/src/repository/repository.rs
@@ -44,7 +44,7 @@ impl Repository {
let is_hidden = de.path()
.file_name()
.and_then(|s| s.to_str())
- .map(|s| s.starts_with("."))
+ .map(|s| s.starts_with('.'))
.unwrap_or(false);
if is_dir && !is_hidden {