reduced overhead by passing an owned string

This commit is contained in:
2025-12-13 22:20:54 +01:00
parent 0a08ad2cae
commit 2eddd7fdc2
36 changed files with 66 additions and 66 deletions

View File

@@ -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(