Skip to content

Commit 73085df

Browse files
dereference sv
1 parent dbedb1d commit 73085df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl<'a, const N: usize, LenT: LenType> Cow<'a, N, LenT> {
3535
/// If the `Cow` is already owned, this returns a clone of it.
3636
pub fn to_owned(&self) -> String<N, LenT> {
3737
match self {
38-
Cow::Borrowed(sv) => String::from(sv),
38+
Cow::Borrowed(sv) => String::from(*sv),
3939
Cow::Owned(s) => s.clone(),
4040
}
4141
}

0 commit comments

Comments
 (0)