Skip to content

Commit f6585e8

Browse files
burtonageoThomas Bahn
authored and
Thomas Bahn
committed
Avoid a Iter::cloned() call in AsciiString::push_str
1 parent 418c2cd commit f6585e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ascii_string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl AsciiString {
146146
/// ```
147147
#[inline]
148148
pub fn push_str(&mut self, string: &AsciiStr) {
149-
self.vec.extend(string.chars().cloned())
149+
self.vec.extend(string.chars())
150150
}
151151

152152
/// Returns the number of bytes that this ASCII string buffer can hold without reallocating.

0 commit comments

Comments
 (0)