Skip to content

refactor: optimize code based on cargo clippy #1172

refactor: optimize code based on cargo clippy

refactor: optimize code based on cargo clippy #1172

Re-run triggered June 20, 2024 09:47
Status Failure
Total duration 1m 38s
Artifacts

ci.yml

on: pull_request
Build with no-std
13s
Build with no-std
Check tokio02 feature
24s
Check tokio02 feature
Checking fmt and docs
29s
Checking fmt and docs
Matrix: Build and test
Matrix: Check io_safety feature
Matrix: Check wasm targets
Matrix: Cross compile
Fit to window
Zoom out
Zoom in

Annotations

70 errors and 70 warnings
Build with no-std: src/utils.rs#L58
trait `Context` is never used
Build with no-std: src/future/future/mod.rs#L30
trait `FutureExt` is never used
Build with no-std
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
Build and test (macOS-latest, stable): src/io/buf_writer.rs#L117
field `1` is never read
Build and test (macOS-latest, stable)
could not compile `async-std` (lib) due to 1 previous error
Build and test (macOS-latest, stable)
The process '/Users/runner/.cargo/bin/cargo' failed with exit code 101
Build and test (ubuntu-latest, beta)
The job was canceled because "macOS-latest_stable" failed.
Build and test (windows-latest, nightly)
The job was canceled because "macOS-latest_stable" failed.
Build and test (windows-latest, nightly)
The operation was canceled.
Build and test (ubuntu-latest, beta): src/io/read/bytes.rs#L35
unexpected `cfg` condition name: `default`
Build and test (ubuntu-latest, beta): src/io/read/chain.rs#L168
unexpected `cfg` condition name: `default`
Build and test (ubuntu-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, stable)
The job was canceled because "macOS-latest_stable" failed.
Build and test (ubuntu-latest, stable)
The operation was canceled.
Build and test (windows-latest, beta)
The job was canceled because "macOS-latest_stable" failed.
Build and test (windows-latest, beta)
The operation was canceled.
Build and test (ubuntu-latest, nightly)
The job was canceled because "macOS-latest_stable" failed.
Check wasm targets (stable): src/io/buf_writer.rs#L117
field `1` is never read
Check wasm targets (stable)
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
Build and test (ubuntu-latest, nightly): src/io/read/bytes.rs#L35
unexpected `cfg` condition name: `default`
Build and test (ubuntu-latest, nightly): src/io/read/chain.rs#L168
unexpected `cfg` condition name: `default`
Build and test (ubuntu-latest, nightly): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, nightly): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, nightly): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, nightly): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, nightly): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, nightly): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, nightly): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (ubuntu-latest, nightly): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (windows-latest, stable)
The job was canceled because "macOS-latest_stable" failed.
Build and test (windows-latest, stable)
The operation was canceled.
Build and test (macOS-latest, nightly)
The job was canceled because "macOS-latest_stable" failed.
Build and test (macOS-latest, nightly)
The operation was canceled.
Build and test (macOS-latest, beta)
The job was canceled because "macOS-latest_stable" failed.
Build and test (macOS-latest, beta): src/io/read/bytes.rs#L35
unexpected `cfg` condition name: `default`
Build and test (macOS-latest, beta): src/io/read/chain.rs#L168
unexpected `cfg` condition name: `default`
Build and test (macOS-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (macOS-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (macOS-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (macOS-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (macOS-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (macOS-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (macOS-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Build and test (macOS-latest, beta): src/utils.rs#L249
unexpected `cfg` condition value: `io-safety`
Check tokio02 feature: src/io/buf_writer.rs#L117
field `1` is never read
Check tokio02 feature
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
Check wasm targets (nightly)
The job was canceled because "stable" failed.
Check wasm targets (nightly)
The operation was canceled.
Check wasm targets (beta)
The job was canceled because "stable" failed.
Check wasm targets (beta)
The operation was canceled.
Checking fmt and docs
Process completed with exit code 101.
Cross compile (i686-unknown-linux-gnu)
Process completed with exit code 101.
Cross compile (powerpc64-unknown-linux-gnu)
The job was canceled because "i686-unknown-linux-gnu" failed.
Cross compile (powerpc64-unknown-linux-gnu)
The operation was canceled.
Cross compile (arm-linux-androideabi)
The job was canceled because "i686-unknown-linux-gnu" failed.
Cross compile (arm-linux-androideabi)
The operation was canceled.
Cross compile (powerpc-unknown-linux-gnu)
The job was canceled because "i686-unknown-linux-gnu" failed.
Cross compile (powerpc-unknown-linux-gnu)
The operation was canceled.
Check io_safety feature (windows-latest)
The process 'C:\Users\runneradmin\.cargo\bin\cargo.exe' failed with exit code 101
Check io_safety feature (ubuntu-latest)
The job was canceled because "windows-latest" failed.
Check io_safety feature (ubuntu-latest)
The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
Build with no-std
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Build with no-std
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Build and test (macOS-latest, stable)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Build and test (macOS-latest, stable)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Build and test (macOS-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (macOS-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (macOS-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (macOS-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (ubuntu-latest, beta)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (ubuntu-latest, beta)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (ubuntu-latest, beta)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (ubuntu-latest, beta)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (ubuntu-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (ubuntu-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (ubuntu-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (ubuntu-latest, stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check wasm targets (stable)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/toolchain@v1, actions/cache@v2, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Check wasm targets (stable)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions/cache@v2, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Build and test (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check wasm targets (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check wasm targets (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (ubuntu-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check wasm targets (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check wasm targets (stable)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (macOS-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (macOS-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (macOS-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (macOS-latest, nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (macOS-latest, beta)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (macOS-latest, beta)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (macOS-latest, beta)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Build and test (macOS-latest, beta)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check tokio02 feature
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Check tokio02 feature
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Check wasm targets (nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check wasm targets (nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check wasm targets (nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check wasm targets (nightly)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check wasm targets (beta)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check wasm targets (beta)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check wasm targets (beta)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check wasm targets (beta)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Checking fmt and docs
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/toolchain@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Checking fmt and docs
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Checking fmt and docs
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Checking fmt and docs
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Checking fmt and docs
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Checking fmt and docs
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (i686-unknown-linux-gnu)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/toolchain@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Cross compile (i686-unknown-linux-gnu)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Cross compile (i686-unknown-linux-gnu)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (i686-unknown-linux-gnu)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (i686-unknown-linux-gnu)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (i686-unknown-linux-gnu)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (powerpc64-unknown-linux-gnu)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (powerpc64-unknown-linux-gnu)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (powerpc64-unknown-linux-gnu)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (powerpc64-unknown-linux-gnu)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (arm-linux-androideabi)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (arm-linux-androideabi)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (arm-linux-androideabi)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (arm-linux-androideabi)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (powerpc-unknown-linux-gnu)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (powerpc-unknown-linux-gnu)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (powerpc-unknown-linux-gnu)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Cross compile (powerpc-unknown-linux-gnu)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Check io_safety feature (windows-latest)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Check io_safety feature (windows-latest)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/