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 dbedb1d commit 73085dfCopy full SHA for 73085df
src/cow.rs
@@ -35,7 +35,7 @@ impl<'a, const N: usize, LenT: LenType> Cow<'a, N, LenT> {
35
/// If the `Cow` is already owned, this returns a clone of it.
36
pub fn to_owned(&self) -> String<N, LenT> {
37
match self {
38
- Cow::Borrowed(sv) => String::from(sv),
+ Cow::Borrowed(sv) => String::from(*sv),
39
Cow::Owned(s) => s.clone(),
40
}
41
0 commit comments