We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407768a commit ae0f684Copy full SHA for ae0f684
frameworks/non-keyed/kobold/src/lib.rs
@@ -74,7 +74,8 @@ impl State {
74
let adjective = ADJECTIVES[random(ADJECTIVES_LEN)];
75
let colour = COLOURS[random(COLOURS_LEN)];
76
let noun = NOUNS[random(NOUNS_LEN)];
77
- let mut label = String::with_capacity(adjective.len() + colour.len() + noun.len() + 2);
+ let mut label = String::new();
78
+ label.reserve_exact(adjective.len() + colour.len() + noun.len() + 2);
79
label.push_str(adjective);
80
label.push(' ');
81
label.push_str(colour);
0 commit comments