Skip to content
Snippets Groups Projects
Commit 2e82ac54 authored by Mikael Urankar's avatar Mikael Urankar
Browse files

net/rabbiteer: Fix build with rust 1.76.0

Import upstream patch [1] to fix the following error:

error[E0310]: the parameter type `T` may not live long enough
    --> /wrkdirs/usr/ports/net/rabbiteer/work/rabbiteer-rs-c881238/cargo-crates/rustc-serialize-0.3.24/src/serialize.rs:1155:5

[1] https://github.com/rust-lang-deprecated/rustc-serialize/commit/75ce92452a5f7c25a58fdea81e5f6f888630a2c9

PR:		276920
Approved by:	portmgr (build fix blanket)
parent 5461083b
No related branches found
No related tags found
No related merge requests found
https://github.com/rust-lang-deprecated/rustc-serialize/commit/75ce92452a5f7c25a58fdea81e5f6f888630a2c9
--- cargo-crates/rustc-serialize-0.3.24/src/serialize.rs.orig 2024-02-10 11:58:37 UTC
+++ cargo-crates/rustc-serialize-0.3.24/src/serialize.rs
@@ -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))))
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment