Skip to content

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

fix(deps): update rust crate thiserror to v2

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

Triggered via push November 11, 2024 06:52
Status Success
Total duration 4m 12s
Artifacts

deny-check.yml

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

Annotations

6 errors
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>>`