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

Commit

Permalink
fix the implied_bounds_entailment lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Dec 1, 2023
1 parent 71b8d6e commit 75ce924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,7 @@ impl<'a, T: ?Sized> Decodable for Cow<'a, T>
where T: ToOwned, T::Owned: Decodable
{
#[inline]
fn decode<D: Decoder>(d: &mut D) -> Result<Cow<'static, T>, D::Error> {
fn decode<D: Decoder>(d: &mut D) -> Result<Cow<'a, T>, D::Error> {
Ok(Cow::Owned(try!(Decodable::decode(d))))
}
}
Expand Down

0 comments on commit 75ce924

Please sign in to comment.