alloy-rs / rlp

Fast implementation of Ethereum RLP serialization
Apache License 2.0
77 stars 16 forks source link

chore: clippy #19

Closed Wollac closed 1 week ago

Wollac commented 1 week ago

Fix clippy warnings with latest nightly.

DaniPopes commented 1 week ago
error: `?Sized` bound is ignored because of a `Sized` requirement
   --> crates/rlp/src/decode.rs:129:9
    |
129 |     [T: ?Sized + Decodable] <alloc::boxed::Box<T>>::new(T),
    |         ^^^^^^
    |
note: `T` cannot be unsized because of the bound
   --> crates/rlp/src/decode.rs:129:18
    |
129 |     [T: ?Sized + Decodable] <alloc::boxed::Box<T>>::new(T),
    |                  ^^^^^^^^^
    = note: ...because `Decodable` has the bound `Sized`
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_maybe_sized
    = note: `-D clippy::needless-maybe-sized` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::needless_maybe_sized)]`