aboutsummaryrefslogtreecommitdiff
path: root/src/filecache.rs
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-07-09 13:12:00 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-07-09 13:12:00 +0200
commit019d08f3441c9e499977d583bb0f8383aff50d4b (patch)
tree1720d6386d39366ddc9f7d321e849350c3bd9c7b /src/filecache.rs
parent8d6b55ebed2bda4705525004863055e99e72da83 (diff)
introduce some minor optimizations
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 a352e58..af97c20 100644
--- a/src/filecache.rs
+++ b/src/filecache.rs
@@ -26,7 +26,7 @@ impl Hash for FileCache {
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 v = FileVector::from_string(&ls[1]);
let p = ls[0].clone().replace('\0', ",");
Self {
vector : v,