From 019d08f3441c9e499977d583bb0f8383aff50d4b Mon Sep 17 00:00:00 2001 From: Nathan Reiner Date: Sun, 9 Jul 2023 13:12:00 +0200 Subject: introduce some minor optimizations --- src/vector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vector.rs') 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 = HashMap::new(); let data_chunks : Vec<&str> = hex.split(' ').collect(); -- cgit v1.2.3-70-g09d2