diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/codes.rs | 2 | ||||
-rw-r--r-- | src/util/edit_map.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/util/codes.rs b/src/util/codes.rs index d35d7d9..5006a00 100644 --- a/src/util/codes.rs +++ b/src/util/codes.rs @@ -7,7 +7,7 @@ use crate::tokenizer::Code; pub fn parse(value: &str) -> Vec<Code> { // Note: It’ll grow a bit bigger with each `Code::VirtualSpace`, smaller // with `Code::CarriageReturnLineFeed`. - let mut codes: Vec<Code> = Vec::with_capacity(value.len()); + let mut codes = Vec::with_capacity(value.len()); let mut at_start = true; let mut at_carriage_return = false; let mut column = 1; diff --git a/src/util/edit_map.rs b/src/util/edit_map.rs index 38ece01..3bcef48 100644 --- a/src/util/edit_map.rs +++ b/src/util/edit_map.rs @@ -104,7 +104,7 @@ impl EditMap { let len_before = events.len(); let mut index = self.map.len(); - let mut vecs: Vec<Vec<Event>> = Vec::with_capacity(index * 2 + 1); + let mut vecs = Vec::with_capacity(index * 2 + 1); while index > 0 { index -= 1; vecs.push(events.split_off(self.map[index].0 + self.map[index].1)); |