Skip to content

Commit e5c85be

Browse files
authored
Merge pull request #482 from dtolnay/mem
Remove pre-allocation in Deserializer construction
2 parents 3cb73ee + b52048c commit e5c85be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/de.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ where
5050
pub fn new(read: R) -> Self {
5151
Deserializer {
5252
read: read,
53-
str_buf: Vec::with_capacity(128),
53+
str_buf: Vec::new(),
5454
remaining_depth: 128,
5555
}
5656
}

0 commit comments

Comments
 (0)