Skip to content

Commit 87e8f01

Browse files
authored
fix std Cow conversion being Sized #581 (#635)
1 parent f5a249e commit 87e8f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metrics/src/cow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ impl<'a> From<std::borrow::Cow<'a, str>> for Cow<'a, str> {
324324
}
325325
}
326326

327-
impl<'a, T: Cowable> From<Cow<'a, T>> for std::borrow::Cow<'a, T> {
327+
impl<'a, T: Cowable + ?Sized> From<Cow<'a, T>> for std::borrow::Cow<'a, T> {
328328
#[inline]
329329
fn from(value: Cow<'a, T>) -> Self {
330330
match value.metadata.kind() {

0 commit comments

Comments
 (0)