storytel-tui icon indicating copy to clipboard operation
storytel-tui copied to clipboard

Build fails

Open rayvermey opened this issue 6 months ago • 0 comments

Hi, if i do cargo run --release (on arch linux) i get this error:

Compiling tinyvec v1.6.0 error[E0310]: the parameter type T may not live long enough --> /home/ray/.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 --> /usr/src/debug/rust/rustc-1.80.1-src/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> | +++++++++

The build fails.

Do you have a tip how to solve this?

Thanks!

Ray

rayvermey avatar Aug 28 '24 14:08 rayvermey