Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit 75ce924

Browse files
committed
fix the implied_bounds_entailment lint
1 parent 71b8d6e commit 75ce924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serialize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ impl<'a, T: ?Sized> Decodable for Cow<'a, T>
11521152
where T: ToOwned, T::Owned: Decodable
11531153
{
11541154
#[inline]
1155-
fn decode<D: Decoder>(d: &mut D) -> Result<Cow<'static, T>, D::Error> {
1155+
fn decode<D: Decoder>(d: &mut D) -> Result<Cow<'a, T>, D::Error> {
11561156
Ok(Cow::Owned(try!(Decodable::decode(d))))
11571157
}
11581158
}

0 commit comments

Comments
 (0)