diff options
-rw-r--r-- | rust-analyzer-chromiumos-wrapper/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust-analyzer-chromiumos-wrapper/src/main.rs b/rust-analyzer-chromiumos-wrapper/src/main.rs index f9f055e7..e293cdbf 100644 --- a/rust-analyzer-chromiumos-wrapper/src/main.rs +++ b/rust-analyzer-chromiumos-wrapper/src/main.rs @@ -354,7 +354,7 @@ mod test { replacement: &str, json_expected: &str, ) -> Result<()> { - let mut w = Vec::<u8>::with_capacity(read.len()); + let mut w = Vec::new(); let replacement_map = { let mut m = HashMap::new(); m.insert(pattern, replacement); |