reduced overhead by passing an owned string
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
pub fn parse_to_floor(input: String) -> Vec<Vec<u8>> {
|
||||
pub fn parse_to_floor(input: &str) -> Vec<Vec<u8>> {
|
||||
let mut rows: Vec<Vec<u8>> = Vec::with_capacity(input.len() + 2);
|
||||
rows.push(vec![0u8; input.len()]);
|
||||
rows.append(
|
||||
|
||||
Reference in New Issue
Block a user