diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-07-09 13:12:00 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-07-09 13:12:00 +0200 |
| commit | 019d08f3441c9e499977d583bb0f8383aff50d4b (patch) | |
| tree | 1720d6386d39366ddc9f7d321e849350c3bd9c7b /src/vector.rs | |
| parent | 8d6b55ebed2bda4705525004863055e99e72da83 (diff) | |
introduce some minor optimizations
Diffstat (limited to 'src/vector.rs')
| -rw-r--r-- | src/vector.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vector.rs b/src/vector.rs index 87be04b..dfd2d71 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -34,7 +34,7 @@ impl FileVector { Self { data : HashMap::new() } } - pub fn from_string(hex : String) -> Self { + pub fn from_string(hex : &str) -> Self { let mut data : HashMap<u64, u64> = HashMap::new(); let data_chunks : Vec<&str> = hex.split(' ').collect(); |