Skip to content

Update Rust crate serde to v1.0.204 #828

Update Rust crate serde to v1.0.204

Update Rust crate serde to v1.0.204 #828

GitHub Actions / clippy failed Jul 6, 2024 in 0s

clippy

1 error

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 0
Note 0
Help 0

Versions

  • rustc 1.81.0-nightly (524d806c6 2024-07-05)
  • cargo 1.81.0-nightly (a515d4634 2024-07-02)
  • clippy 0.1.81 (524d806 2024-07-05)

Annotations

Check failure on line 1155 in /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.24/src/serialize.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the parameter type `T` may not live long enough

error[E0310]: the parameter type `T` may not live long enough
    --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.24/src/serialize.rs:1155:5
     |
1155 |     fn decode<D: Decoder>(d: &mut D) -> Result<Cow<'static, T>, D::Error> {
     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |     |
     |     the parameter type `T` must be valid for the static lifetime...
     |     ...so that the type `T` will meet its required lifetime bounds...
     |
note: ...that is required by this bound
    --> /rustc/524d806c62a82ecc0cf8634b94997ae506f4d6f9/library/alloc/src/borrow.rs:180:30
help: consider adding an explicit lifetime bound
     |
1151 | impl<'a, T: ?Sized + 'static> Decodable for Cow<'a, T>
     |                    +++++++++