Skip to content

Commit c72f748

Browse files
committed
Add missing reference
1 parent 4f862e6 commit c72f748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2020,7 +2020,7 @@ impl<'a> Extend<Cow<'a, str>> for String {
20202020
fn extend_one(&mut self, s: Cow<'a, str>) {
20212021
match s {
20222022
Cow::Owned(s) => self.extend_one(s),
2023-
Cow::Borrowed(s) => self.push_str(s),
2023+
Cow::Borrowed(s) => self.push_str(&s),
20242024
}
20252025
}
20262026
}

0 commit comments

Comments
 (0)