mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 08:34:43 +08:00
chore: Fix clippy::perf warnings in ./stx-genesis
This commit is contained in:
@@ -129,7 +129,7 @@ fn iter_deflated_csv(deflate_bytes: &'static [u8]) -> Box<dyn Iterator<Item = Ve
|
||||
let line_iter = buff_reader
|
||||
.lines()
|
||||
.map(|line| line.unwrap())
|
||||
.map(|line| line.split(",").map(String::from).collect());
|
||||
.map(|line| line.split(',').map(String::from).collect());
|
||||
return Box::new(line_iter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user