Skip to content

fix(deps): update rust crate thiserror to v2 #48

fix(deps): update rust crate thiserror to v2

fix(deps): update rust crate thiserror to v2 #48

Triggered via push November 7, 2024 18:22
Status Success
Total duration 43s
Artifacts

deny-check.yml

on: push
Matrix: cargo-deny
Fit to window
Zoom out
Zoom in

Annotations

8 errors
`?` couldn't convert the error to `relay::udprelay::aead_2022::ProtocolError`: crates/shadowsocks/src/relay/udprelay/aead_2022.rs#L667
error[E0277]: `?` couldn't convert the error to `relay::udprelay::aead_2022::ProtocolError` --> crates/shadowsocks/src/relay/udprelay/aead_2022.rs:667:60 | 636 | ) -> ProtocolResult<(usize, Address, UdpSocketControlData)> { | ------------------------------------------------------ expected `relay::udprelay::aead_2022::ProtocolError` because of this ... 667 | cursor.seek(SeekFrom::Current(padding_size as i64))?; | --------------------------------------------^ the trait `std::convert::From<std::io::Error>` is not implemented for `relay::udprelay::aead_2022::ProtocolError`, which is required by `std::result::Result<(usize, relay::socks5::Address, relay::udprelay::options::UdpSocketControlData), relay::udprelay::aead_2022::ProtocolError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>` | | | this can't be annotated with `?` because it has type `Result<_, std::io::Error>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the trait `std::ops::FromResidual<std::result::Result<std::convert::Infallible, E>>` is implemented for `std::result::Result<T, F>` = note: required for `Result<(usize, Address, UdpSocketControlData), ProtocolError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>` = note: the full name for the type has been written to '/home/runner/work/shadowsocks-rust/shadowsocks-rust/target/debug/deps/shadowsocks-dc2d600d032db51a.long-type-10751054623687181965.txt' = note: consider using `--verbose` to print the full type name to the console
`?` couldn't convert the error to `relay::udprelay::aead_2022::ProtocolError`: crates/shadowsocks/src/relay/udprelay/aead_2022.rs#L561
error[E0277]: `?` couldn't convert the error to `relay::udprelay::aead_2022::ProtocolError` --> crates/shadowsocks/src/relay/udprelay/aead_2022.rs:561:60 | 525 | ) -> ProtocolResult<(usize, Address, UdpSocketControlData)> { | ------------------------------------------------------ expected `relay::udprelay::aead_2022::ProtocolError` because of this ... 561 | cursor.seek(SeekFrom::Current(padding_size as i64))?; | --------------------------------------------^ the trait `std::convert::From<std::io::Error>` is not implemented for `relay::udprelay::aead_2022::ProtocolError`, which is required by `std::result::Result<(usize, relay::socks5::Address, relay::udprelay::options::UdpSocketControlData), relay::udprelay::aead_2022::ProtocolError>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>` | | | this can't be annotated with `?` because it has type `Result<_, std::io::Error>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the trait `std::ops::FromResidual<std::result::Result<std::convert::Infallible, E>>` is implemented for `std::result::Result<T, F>` = note: required for `Result<(usize, Address, UdpSocketControlData), ProtocolError>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>` = note: the full name for the type has been written to '/home/runner/work/shadowsocks-rust/shadowsocks-rust/target/debug/deps/shadowsocks-dc2d600d032db51a.long-type-10751054623687181965.txt' = note: consider using `--verbose` to print the full type name to the console
the trait bound `relay::tcprelay::aead_2022::ProtocolError: std::convert::From<std::io::Error>` is not satisfied: crates/shadowsocks/src/relay/tcprelay/aead_2022.rs#L432
error[E0277]: the trait bound `relay::tcprelay::aead_2022::ProtocolError: std::convert::From<std::io::Error>` is not satisfied --> crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:432:66 | 432 | return Err(io::Error::from(ErrorKind::UnexpectedEof).into()).into(); | ^^^^ the trait `std::convert::From<std::io::Error>` is not implemented for `relay::tcprelay::aead_2022::ProtocolError`, which is required by `std::io::Error: std::convert::Into<_>` | = note: required for `std::io::Error` to implement `std::convert::Into<relay::tcprelay::aead_2022::ProtocolError>`
`?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError`: crates/shadowsocks/src/relay/tcprelay/aead_2022.rs#L430
error[E0277]: `?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError` --> crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:430:67 | 430 | let n = ready!(self.poll_read_exact(cx, stream, data_len))?; | ^ the trait `std::convert::From<std::io::Error>` is not implemented for `relay::tcprelay::aead_2022::ProtocolError`, which is required by `std::task::Poll<std::result::Result<(), relay::tcprelay::aead_2022::ProtocolError>>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `std::ops::FromResidual<R>`: std::task::Poll<std::option::Option<std::result::Result<T, F>>> std::task::Poll<std::result::Result<T, F>> = note: required for `std::task::Poll<std::result::Result<(), relay::tcprelay::aead_2022::ProtocolError>>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>`
`?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError`: crates/shadowsocks/src/relay/tcprelay/aead_2022.rs#L396
error[E0277]: `?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError` --> crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:396:58 | 396 | context.check_nonce_replay(self.method, salt)?; | ^ the trait `std::convert::From<std::io::Error>` is not implemented for `relay::tcprelay::aead_2022::ProtocolError`, which is required by `std::task::Poll<std::result::Result<std::option::Option<usize>, relay::tcprelay::aead_2022::ProtocolError>>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `std::ops::FromResidual<R>`: std::task::Poll<std::option::Option<std::result::Result<T, F>>> std::task::Poll<std::result::Result<T, F>> = note: required for `std::task::Poll<std::result::Result<std::option::Option<usize>, relay::tcprelay::aead_2022::ProtocolError>>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>`
`?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError`: crates/shadowsocks/src/relay/tcprelay/aead_2022.rs#L376
error[E0277]: `?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError` --> crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:376:56 | 376 | header_reader.read_exact(&mut request_salt)?; | ^ the trait `std::convert::From<std::io::Error>` is not implemented for `relay::tcprelay::aead_2022::ProtocolError`, which is required by `std::task::Poll<std::result::Result<std::option::Option<usize>, relay::tcprelay::aead_2022::ProtocolError>>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `std::ops::FromResidual<R>`: std::task::Poll<std::option::Option<std::result::Result<T, F>>> std::task::Poll<std::result::Result<T, F>> = note: required for `std::task::Poll<std::result::Result<std::option::Option<usize>, relay::tcprelay::aead_2022::ProtocolError>>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>`
`?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError`: crates/shadowsocks/src/relay/tcprelay/aead_2022.rs#L285
error[E0277]: `?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError` --> crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:285:62 | 285 | ready!(Pin::new(stream).poll_read(cx, &mut read_buf))?; | ^ the trait `std::convert::From<std::io::Error>` is not implemented for `relay::tcprelay::aead_2022::ProtocolError`, which is required by `std::task::Poll<std::result::Result<std::option::Option<usize>, relay::tcprelay::aead_2022::ProtocolError>>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `std::ops::FromResidual<R>`: std::task::Poll<std::option::Option<std::result::Result<T, F>>> std::task::Poll<std::result::Result<T, F>> = note: required for `std::task::Poll<std::result::Result<std::option::Option<usize>, relay::tcprelay::aead_2022::ProtocolError>>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>`
`?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError`: crates/shadowsocks/src/relay/tcprelay/aead_2022.rs#L224
error[E0277]: `?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError` --> crates/shadowsocks/src/relay/tcprelay/aead_2022.rs:224:96 | 224 | DecryptReadState::ReadLength => match ready!(self.poll_read_length(cx, stream))? { | ^ the trait `std::convert::From<std::io::Error>` is not implemented for `relay::tcprelay::aead_2022::ProtocolError`, which is required by `std::task::Poll<std::result::Result<(), relay::tcprelay::aead_2022::ProtocolError>>: std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>` | = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait = help: the following other types implement trait `std::ops::FromResidual<R>`: std::task::Poll<std::option::Option<std::result::Result<T, F>>> std::task::Poll<std::result::Result<T, F>> = note: required for `std::task::Poll<std::result::Result<(), relay::tcprelay::aead_2022::ProtocolError>>` to implement `std::ops::FromResidual<std::result::Result<std::convert::Infallible, std::io::Error>>`