aboutsummaryrefslogtreecommitdiff
path: root/src/filecache.rs
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-07-06 14:05:39 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-07-06 14:05:39 +0200
commit8c3c8efa428200c67c1a6fa731faee55adf19678 (patch)
tree40f96ad5bd9bb86c62a84bd05914afcf345c6a05 /src/filecache.rs
parent8799c886003d5eb0084589776ccafea809c451ff (diff)
cleanup with clippy
Diffstat (limited to 'src/filecache.rs')
-rw-r--r--src/filecache.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filecache.rs b/src/filecache.rs
index 5e9d324..287cea0 100644
--- a/src/filecache.rs
+++ b/src/filecache.rs
@@ -9,7 +9,7 @@ impl FileCache {
pub fn from_line(line : String) -> Self {
let ls : Vec<String> = line.split(',').map(|s| s.to_string()).collect();
let v = FileVector::from_string(ls[1].clone());
- let p = ls[0].clone().replace("\0", ",");
+ let p = ls[0].clone().replace('\0', ",");
Self {
vector : v,
path : p