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

GitHub Actions / clippy ubuntu-latest failed Nov 7, 2024 in 0s

clippy ubuntu-latest

8 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 8
Warning 0
Note 0
Help 0

Versions

  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • cargo 1.82.0 (8f40fc59f 2024-08-21)
  • clippy 0.1.82 (f6e511e 2024-10-15)

Annotations

Check failure on line 667 in crates/shadowsocks/src/relay/udprelay/aead_2022.rs

See this annotation in the file changed.

@github-actions github-actions / clippy ubuntu-latest

`?` couldn't convert the error to `relay::udprelay::aead_2022::ProtocolError`

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

Check failure on line 561 in crates/shadowsocks/src/relay/udprelay/aead_2022.rs

See this annotation in the file changed.

@github-actions github-actions / clippy ubuntu-latest

`?` couldn't convert the error to `relay::udprelay::aead_2022::ProtocolError`

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

Check failure on line 432 in crates/shadowsocks/src/relay/tcprelay/aead_2022.rs

See this annotation in the file changed.

@github-actions github-actions / clippy ubuntu-latest

the trait bound `relay::tcprelay::aead_2022::ProtocolError: std::convert::From<std::io::Error>` is not satisfied

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

Check failure on line 430 in crates/shadowsocks/src/relay/tcprelay/aead_2022.rs

See this annotation in the file changed.

@github-actions github-actions / clippy ubuntu-latest

`?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError`

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

Check failure on line 396 in crates/shadowsocks/src/relay/tcprelay/aead_2022.rs

See this annotation in the file changed.

@github-actions github-actions / clippy ubuntu-latest

`?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError`

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

Check failure on line 376 in crates/shadowsocks/src/relay/tcprelay/aead_2022.rs

See this annotation in the file changed.

@github-actions github-actions / clippy ubuntu-latest

`?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError`

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

Check failure on line 285 in crates/shadowsocks/src/relay/tcprelay/aead_2022.rs

See this annotation in the file changed.

@github-actions github-actions / clippy ubuntu-latest

`?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError`

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

Check failure on line 224 in crates/shadowsocks/src/relay/tcprelay/aead_2022.rs

See this annotation in the file changed.

@github-actions github-actions / clippy ubuntu-latest

`?` couldn't convert the error to `relay::tcprelay::aead_2022::ProtocolError`

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