Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let mut values: HashMap<&str, &str> = HashMap::new();
- while rdr.read_byte_record(&mut record)? {
- //println!("{:?}", str::from_utf8(&record[indexMatch]).unwrap());
- let keyValue = str::from_utf8(&record[indexMatch]).unwrap();
- let exportValue = str::from_utf8(&record[indexExport]).unwrap();
- values.insert(keyValue, exportValue);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement