Skip to content

expose more internal error types. #1498

expose more internal error types.

expose more internal error types. #1498

Triggered via pull request February 19, 2024 11:09
Status Success
Total duration 1m 9s
Artifacts

clippy-fmt.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

50 warnings
fmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: 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/.
fmt
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/
fmt
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/
fmt
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/
fmt
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/
fmt
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/
the item `Box` is imported redundantly: unsafe_collection/src/small_str.rs#L18
warning: the item `Box` is imported redundantly --> unsafe_collection/src/small_str.rs:18:9 | 18 | use alloc::boxed::Box; | ^^^^^^^^^^^^^^^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:125:13 | = note: the item `Box` is already defined here | = note: `#[warn(unused_imports)]` on by default
the item `BytesMut` is imported redundantly: tls/src/rustls_uring.rs#L319
warning: the item `BytesMut` is imported redundantly --> tls/src/rustls_uring.rs:319:32 | 319 | use xitca_io::bytes::{Buf, BytesMut}; | ^^^^^^^^ 320 | 321 | use super::*; | -------- the item `BytesMut` is already imported here
the item `Buf` is imported redundantly: tls/src/rustls_uring.rs#L319
warning: the item `Buf` is imported redundantly --> tls/src/rustls_uring.rs:319:27 | 319 | use xitca_io::bytes::{Buf, BytesMut}; | ^^^ 320 | 321 | use super::*; | -------- the item `Buf` is already imported here | = note: `#[warn(unused_imports)]` on by default
the item `Header` is imported redundantly: http/src/h2/proto/hpack/encoder.rs#L293
warning: the item `Header` is imported redundantly --> http/src/h2/proto/hpack/encoder.rs:293:9 | 293 | use crate::h2::proto::hpack::header::Header; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 294 | 295 | use super::*; | -------- the item `Header` is already imported here
the item `Header` is imported redundantly: http/src/h2/proto/hpack/decoder.rs#L816
warning: the item `Header` is imported redundantly --> http/src/h2/proto/hpack/decoder.rs:816:9 | 816 | use crate::h2::proto::hpack::header::Header; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 817 | 818 | use super::*; | -------- the item `Header` is already imported here
the item `Bytes` is imported redundantly: http/src/h1/proto/encode.rs#L254
warning: the item `Bytes` is imported redundantly --> http/src/h1/proto/encode.rs:254:9 | 254 | bytes::Bytes, | ^^^^^^^^^^^^ ... 259 | use super::*; | -------- the item `Bytes` is already imported here
the item `Request` is imported redundantly: http/src/util/service/router.rs#L353
warning: the item `Request` is imported redundantly --> http/src/util/service/router.rs:353:16 | 353 | http::{Request, RequestExt, Response}, | ^^^^^^^ ... 357 | use super::*; | -------- the item `Request` is already imported here
the item `Service` is imported redundantly: http/src/util/service/router.rs#L349
warning: the item `Service` is imported redundantly --> http/src/util/service/router.rs:349:58 | 349 | use xitca_service::{fn_service, ready::ReadyService, Service, ServiceExt}; | ^^^^^^^ ... 357 | use super::*; | -------- the item `Service` is already imported here
the item `Service` is imported redundantly: http/src/util/service/route.rs#L240
warning: the item `Service` is imported redundantly --> http/src/util/service/route.rs:240:37 | 240 | use xitca_service::{fn_service, Service, ServiceExt}; | ^^^^^^^ ... 248 | use super::*; | -------- the item `Service` is already imported here
the item `Service` is imported redundantly: http/src/util/service/handler.rs#L239
warning: the item `Service` is imported redundantly --> http/src/util/service/handler.rs:239:25 | 239 | use xitca_service::{Service, ServiceExt}; | ^^^^^^^ ... 244 | use super::*; | -------- the item `Service` is already imported here
the item `Infallible` is imported redundantly: http/src/util/service/handler.rs#L237
warning: the item `Infallible` is imported redundantly --> http/src/util/service/handler.rs:237:9 | 237 | use std::convert::Infallible; | ^^^^^^^^^^^^^^^^^^^^^^^^ ... 244 | use super::*; | -------- the item `Infallible` is already imported here | = note: `#[warn(unused_imports)]` on by default
the item `Vec` is imported redundantly: router/src/params.rs#L3
warning: the item `Vec` is imported redundantly --> router/src/params.rs:3:24 | 3 | use alloc::vec::{self, Vec}; | ^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here | = note: `#[warn(unused_imports)]` on by default
the item `DefaultDirectRateLimiter` is imported redundantly: http-rate/src/lib.rs#L106
warning: the item `DefaultDirectRateLimiter` is imported redundantly --> http-rate/src/lib.rs:106:9 | 106 | DefaultDirectRateLimiter, | ^^^^^^^^^^^^^^^^^^^^^^^^ ... 109 | use super::*; | -------- the item `DefaultDirectRateLimiter` is already imported here
the item `RateLimiter` is imported redundantly: http-rate/src/lib.rs#L104
warning: the item `RateLimiter` is imported redundantly --> http-rate/src/lib.rs:104:9 | 104 | state::RateLimiter, | ^^^^^^^^^^^^^^^^^^ ... 109 | use super::*; | -------- the item `RateLimiter` is already imported here
the item `Quota` is imported redundantly: http-rate/src/lib.rs#L103
warning: the item `Quota` is imported redundantly --> http-rate/src/lib.rs:103:9 | 103 | quota::Quota, | ^^^^^^^^^^^^ ... 109 | use super::*; | -------- the item `Quota` is already imported here
the item `NonZeroU32` is imported redundantly: http-rate/src/state/keyed.rs#L179
warning: the item `NonZeroU32` is imported redundantly --> http-rate/src/state/keyed.rs:179:37 | 179 | use core::{marker::PhantomData, num::NonZeroU32}; | ^^^^^^^^^^^^^^^ ... 183 | use super::*; | -------- the item `NonZeroU32` is already imported here
the item `TryInto` is imported redundantly: http-rate/src/quota.rs#L1
warning: the item `TryInto` is imported redundantly --> http-rate/src/quota.rs:1:12 | 1 | use core::{convert::TryInto, fmt, num::NonZeroU32, time::Duration}; | ^^^^^^^^^^^^^^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:129:13 | = note: the item `TryInto` is already defined here
the item `TryInto` is imported redundantly: http-rate/src/nanos.rs#L4
warning: the item `TryInto` is imported redundantly --> http-rate/src/nanos.rs:4:5 | 4 | convert::TryInto, | ^^^^^^^^^^^^^^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:129:13 | = note: the item `TryInto` is already defined here
the item `Quota` is imported redundantly: http-rate/src/gcra.rs#L159
warning: the item `Quota` is imported redundantly --> http-rate/src/gcra.rs:159:9 | 159 | use crate::quota::Quota; | ^^^^^^^^^^^^^^^^^^^ 160 | 161 | use super::*; | -------- the item `Quota` is already imported here | = note: `#[warn(unused_imports)]` on by default
the item `Vec` is imported redundantly: postgres/src/statement.rs#L3
warning: the item `Vec` is imported redundantly --> postgres/src/statement.rs:3:25 | 3 | use alloc::{boxed::Box, vec::Vec}; | ^^^^^^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `Box` is imported redundantly: postgres/src/statement.rs#L3
warning: the item `Box` is imported redundantly --> postgres/src/statement.rs:3:13 | 3 | use alloc::{boxed::Box, vec::Vec}; | ^^^^^^^^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:125:13 | = note: the item `Box` is already defined here
the item `String` is imported redundantly: postgres/src/error.rs#L3
warning: the item `String` is imported redundantly --> postgres/src/error.rs:3:5 | 3 | use alloc::string::String; | ^^^^^^^^^^^^^^^^^^^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Vec` is imported redundantly: postgres/src/prepare.rs#L7
warning: the item `Vec` is imported redundantly --> postgres/src/prepare.rs:7:41 | 7 | use alloc::{boxed::Box, string::String, vec::Vec}; | ^^^^^^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here
the item `String` is imported redundantly: postgres/src/prepare.rs#L7
warning: the item `String` is imported redundantly --> postgres/src/prepare.rs:7:25 | 7 | use alloc::{boxed::Box, string::String, vec::Vec}; | ^^^^^^^^^^^^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:125:13 | = note: the item `String` is already defined here
the item `Box` is imported redundantly: postgres/src/prepare.rs#L7
warning: the item `Box` is imported redundantly --> postgres/src/prepare.rs:7:13 | 7 | use alloc::{boxed::Box, string::String, vec::Vec}; | ^^^^^^^^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:125:13 | = note: the item `Box` is already defined here
the item `Box` is imported redundantly: postgres/src/column.rs#L3
warning: the item `Box` is imported redundantly --> postgres/src/column.rs:3:5 | 3 | use alloc::boxed::Box; | ^^^^^^^^^^^^^^^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:125:13 | = note: the item `Box` is already defined here | = note: `#[warn(unused_imports)]` on by default
the item `Bytes` is imported redundantly: web/src/service/tower_http_compat.rs#L240
warning: the item `Bytes` is imported redundantly --> web/src/service/tower_http_compat.rs:240:9 | 240 | use crate::bytes::Bytes; | ^^^^^^^^^^^^^^^^^^^ 241 | 242 | use super::*; | -------- the item `Bytes` is already imported here
the item `BodyError` is imported redundantly: web/src/middleware/limit.rs#L170
warning: the item `BodyError` is imported redundantly --> web/src/middleware/limit.rs:170:9 | 170 | error::BodyError, | ^^^^^^^^^^^^^^^^ ... 177 | use super::*; | -------- the item `BodyError` is already imported here
the item `Service` is imported redundantly: web/src/handler/types/json.rs#L232
warning: the item `Service` is imported redundantly --> web/src/handler/types/json.rs:232:9 | 232 | service::Service, | ^^^^^^^^^^^^^^^^ ... 237 | use super::*; | -------- the item `Service` is already imported here
the item `de` is imported redundantly: web/src/handler/types/params.rs#L517
warning: the item `de` is imported redundantly --> web/src/handler/types/params.rs:517:17 | 517 | use serde::{de, Deserialize}; | ^^ ... 528 | use super::*; | -------- the item `de` is already imported here
the item `fmt` is imported redundantly: web/src/error/mod.rs#L461
warning: the item `fmt` is imported redundantly --> web/src/error/mod.rs:461:9 | 461 | use core::fmt; | ^^^^^^^^^ ... 467 | use super::*; | -------- the item `fmt` is already imported here
the item `Service` is imported redundantly: web/src/app/mod.rs#L590
warning: the item `Service` is imported redundantly --> web/src/app/mod.rs:590:9 | 590 | service::Service, | ^^^^^^^^^^^^^^^^ ... 593 | use super::*; | -------- the item `Service` is already imported here | = note: `#[warn(unused_imports)]` on by default
the item `TryInto` is imported redundantly: http-rate/src/quota.rs#L1
warning: the item `TryInto` is imported redundantly --> http-rate/src/quota.rs:1:12 | 1 | use core::{convert::TryInto, fmt, num::NonZeroU32, time::Duration}; | ^^^^^^^^^^^^^^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:129:13 | = note: the item `TryInto` is already defined here
the item `TryInto` is imported redundantly: http-rate/src/nanos.rs#L4
warning: the item `TryInto` is imported redundantly --> http-rate/src/nanos.rs:4:5 | 4 | convert::TryInto, | ^^^^^^^^^^^^^^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:129:13 | = note: the item `TryInto` is already defined here | = note: `#[warn(unused_imports)]` on by default
the item `Vec` is imported redundantly: router/src/params.rs#L3
warning: the item `Vec` is imported redundantly --> router/src/params.rs:3:24 | 3 | use alloc::vec::{self, Vec}; | ^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:125:13 | = note: the item `Vec` is already defined here | = note: `#[warn(unused_imports)]` on by default
the item `BytesMut` is imported redundantly: tls/src/rustls_uring.rs#L319
warning: the item `BytesMut` is imported redundantly --> tls/src/rustls_uring.rs:319:32 | 319 | use xitca_io::bytes::{Buf, BytesMut}; | ^^^^^^^^ 320 | 321 | use super::*; | -------- the item `BytesMut` is already imported here
the item `Buf` is imported redundantly: tls/src/rustls_uring.rs#L319
warning: the item `Buf` is imported redundantly --> tls/src/rustls_uring.rs:319:27 | 319 | use xitca_io::bytes::{Buf, BytesMut}; | ^^^ 320 | 321 | use super::*; | -------- the item `Buf` is already imported here | = note: `#[warn(unused_imports)]` on by default
the item `Box` is imported redundantly: unsafe_collection/src/small_str.rs#L18
warning: the item `Box` is imported redundantly --> unsafe_collection/src/small_str.rs:18:9 | 18 | use alloc::boxed::Box; | ^^^^^^^^^^^^^^^^^ --> /rustc/2bf78d12d33ae02d10010309a0d85dd04e7cff72/library/std/src/prelude/mod.rs:125:13 | = note: the item `Box` is already defined here | = note: `#[warn(unused_imports)]` on by default
clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
clippy
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
clippy
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/
clippy
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/
clippy
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/
clippy
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/