summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-08-30 12:16:16 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-08-30 12:16:16 +0200
commit406718822b4dddd635df6a62128bf2228db9248e (patch)
tree5dc53c1b4798cd57c2dcfeda5bf3b87cfda8dd99
parentaa72b008334d982dc5534bb9c2699dd3751ef02a (diff)
Fix clippy: Use character constant
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
-rw-r--r--src/repository/fs/representation.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository/fs/representation.rs b/src/repository/fs/representation.rs
index 004b4f8..991d791 100644
--- a/src/repository/fs/representation.rs
+++ b/src/repository/fs/representation.rs
@@ -197,7 +197,7 @@ impl FileSystemRepresentation {
/// Helper to check whether a DirEntry points to a hidden file
fn is_hidden(entry: &DirEntry) -> bool {
log::trace!("Check {:?} is hidden", entry);
- entry.file_name().to_str().map(|s| s.starts_with(".")).unwrap_or(false)
+ entry.file_name().to_str().map(|s| s.starts_with('.')).unwrap_or(false)
}
/// Helper to check whether a DirEntry points to a directory