Skip to content

Use ntex-service 3.0 (#10) #123

Use ntex-service 3.0 (#10)

Use ntex-service 3.0 (#10) #123

Triggered via push May 28, 2024 15:10
Status Success
Total duration 39s
Artifacts

checks.yml

on: push
Matrix: Rustfmt
Fit to window
Zoom out
Zoom in

Annotations

78 warnings
Rustfmt (stable)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, 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/.
Rustfmt (stable)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, 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/
Rustfmt (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/
Rustfmt (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/
Rustfmt (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/
Rustfmt (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/
usage of a legacy numeric method: src/codec.rs#L510
warning: usage of a legacy numeric method --> src/codec.rs:510:50 | 510 | && x > ($int_ty::max_value() as i64)) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 510 | && x > ($int_ty::MAX as i64)) | ~~~
usage of a legacy numeric method: src/codec.rs#L509
warning: usage of a legacy numeric method --> src/codec.rs:509:42 | 509 | || ($int_ty::max_value() as i64 > 0 | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 509 | || ($int_ty::MAX as i64 > 0 | ~~~
usage of a legacy numeric method: src/codec.rs#L508
warning: usage of a legacy numeric method --> src/codec.rs:508:42 | 508 | if x < ($int_ty::min_value() as i64) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 508 | if x < ($int_ty::MIN as i64) | ~~~
usage of a legacy numeric method: src/codec.rs#L510
warning: usage of a legacy numeric method --> src/codec.rs:510:50 | 510 | && x > ($int_ty::max_value() as i64)) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 510 | && x > ($int_ty::MAX as i64)) | ~~~
usage of a legacy numeric method: src/codec.rs#L509
warning: usage of a legacy numeric method --> src/codec.rs:509:42 | 509 | || ($int_ty::max_value() as i64 > 0 | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 509 | || ($int_ty::MAX as i64 > 0 | ~~~
usage of a legacy numeric method: src/codec.rs#L508
warning: usage of a legacy numeric method --> src/codec.rs:508:42 | 508 | if x < ($int_ty::min_value() as i64) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 508 | if x < ($int_ty::MIN as i64) | ~~~
usage of a legacy numeric method: src/codec.rs#L510
warning: usage of a legacy numeric method --> src/codec.rs:510:50 | 510 | && x > ($int_ty::max_value() as i64)) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 510 | && x > ($int_ty::MAX as i64)) | ~~~
usage of a legacy numeric method: src/codec.rs#L509
warning: usage of a legacy numeric method --> src/codec.rs:509:42 | 509 | || ($int_ty::max_value() as i64 > 0 | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 509 | || ($int_ty::MAX as i64 > 0 | ~~~
usage of a legacy numeric method: src/codec.rs#L508
warning: usage of a legacy numeric method --> src/codec.rs:508:42 | 508 | if x < ($int_ty::min_value() as i64) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 508 | if x < ($int_ty::MIN as i64) | ~~~
usage of a legacy numeric method: src/codec.rs#L510
warning: usage of a legacy numeric method --> src/codec.rs:510:50 | 510 | && x > ($int_ty::max_value() as i64)) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 510 | && x > ($int_ty::MAX as i64)) | ~~~
usage of a legacy numeric method: src/codec.rs#L509
warning: usage of a legacy numeric method --> src/codec.rs:509:42 | 509 | || ($int_ty::max_value() as i64 > 0 | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 509 | || ($int_ty::MAX as i64 > 0 | ~~~
usage of a legacy numeric method: src/codec.rs#L508
warning: usage of a legacy numeric method --> src/codec.rs:508:42 | 508 | if x < ($int_ty::min_value() as i64) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 508 | if x < ($int_ty::MIN as i64) | ~~~
usage of a legacy numeric method: src/codec.rs#L510
warning: usage of a legacy numeric method --> src/codec.rs:510:50 | 510 | && x > ($int_ty::max_value() as i64)) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 510 | && x > ($int_ty::MAX as i64)) | ~~~
usage of a legacy numeric method: src/codec.rs#L509
warning: usage of a legacy numeric method --> src/codec.rs:509:42 | 509 | || ($int_ty::max_value() as i64 > 0 | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 509 | || ($int_ty::MAX as i64 > 0 | ~~~
usage of a legacy numeric method: src/codec.rs#L508
warning: usage of a legacy numeric method --> src/codec.rs:508:42 | 508 | if x < ($int_ty::min_value() as i64) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: `#[warn(clippy::legacy_numeric_constants)]` on by default = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 508 | if x < ($int_ty::MIN as i64) | ~~~
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L87
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:87:69 | 87 | s if s == &TYPE_MESSAGE || s == &TYPE_SMESSAGE || s == &TYPE_PMESSAGE => { | ^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L87
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:87:46 | 87 | s if s == &TYPE_MESSAGE || s == &TYPE_SMESSAGE || s == &TYPE_PMESSAGE => { | ^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L87
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:87:24 | 87 | s if s == &TYPE_MESSAGE || s == &TYPE_SMESSAGE || s == &TYPE_PMESSAGE => { | ^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L84
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:84:77 | 84 | s if s == &TYPE_UNSUBSCRIBE || s == &TYPE_SUNSUBSCRIBE || s == &TYPE_PUNSUBSCRIBE => { | ^^^^^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L84
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:84:50 | 84 | s if s == &TYPE_UNSUBSCRIBE || s == &TYPE_SUNSUBSCRIBE || s == &TYPE_PUNSUBSCRIBE => { | ^^^^^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L84
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:84:24 | 84 | s if s == &TYPE_UNSUBSCRIBE || s == &TYPE_SUNSUBSCRIBE || s == &TYPE_PUNSUBSCRIBE => { | ^^^^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L81
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:81:73 | 81 | s if s == &TYPE_SUBSCRIBE || s == &TYPE_SSUBSCRIBE || s == &TYPE_PSUBSCRIBE => { | ^^^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L81
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:81:48 | 81 | s if s == &TYPE_SUBSCRIBE || s == &TYPE_SSUBSCRIBE || s == &TYPE_PSUBSCRIBE => { | ^^^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L81
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:81:24 | 81 | s if s == &TYPE_SUBSCRIBE || s == &TYPE_SSUBSCRIBE || s == &TYPE_PSUBSCRIBE => { | ^^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const = note: `#[warn(clippy::borrow_interior_mutable_const)]` on by default
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L15
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:15:1 | 15 | const TYPE_PMESSAGE: Bytes = Bytes::from_static(b"pmessage"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L14
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:14:1 | 14 | const TYPE_SMESSAGE: Bytes = Bytes::from_static(b"smessage"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L13
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:13:1 | 13 | const TYPE_MESSAGE: Bytes = Bytes::from_static(b"message"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L12
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:12:1 | 12 | const TYPE_PUNSUBSCRIBE: Bytes = Bytes::from_static(b"punsubscribe"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L11
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:11:1 | 11 | const TYPE_PSUBSCRIBE: Bytes = Bytes::from_static(b"psubscribe"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L10
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:10:1 | 10 | const TYPE_SUNSUBSCRIBE: Bytes = Bytes::from_static(b"sunsubscribe"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L9
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:9:1 | 9 | const TYPE_SSUBSCRIBE: Bytes = Bytes::from_static(b"ssubscribe"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L8
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:8:1 | 8 | const TYPE_UNSUBSCRIBE: Bytes = Bytes::from_static(b"unsubscribe"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L7
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:7:1 | 7 | const TYPE_SUBSCRIBE: Bytes = Bytes::from_static(b"subscribe"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const = note: `#[warn(clippy::declare_interior_mutable_const)]` on by default
Clippy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, 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/checkout@v2, 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/
usage of a legacy numeric method: src/codec.rs#L510
warning: usage of a legacy numeric method --> src/codec.rs:510:50 | 510 | && x > ($int_ty::max_value() as i64)) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 510 | && x > ($int_ty::MAX as i64)) | ~~~
usage of a legacy numeric method: src/codec.rs#L509
warning: usage of a legacy numeric method --> src/codec.rs:509:42 | 509 | || ($int_ty::max_value() as i64 > 0 | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 509 | || ($int_ty::MAX as i64 > 0 | ~~~
usage of a legacy numeric method: src/codec.rs#L508
warning: usage of a legacy numeric method --> src/codec.rs:508:42 | 508 | if x < ($int_ty::min_value() as i64) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 508 | if x < ($int_ty::MIN as i64) | ~~~
usage of a legacy numeric method: src/codec.rs#L510
warning: usage of a legacy numeric method --> src/codec.rs:510:50 | 510 | && x > ($int_ty::max_value() as i64)) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 510 | && x > ($int_ty::MAX as i64)) | ~~~
usage of a legacy numeric method: src/codec.rs#L509
warning: usage of a legacy numeric method --> src/codec.rs:509:42 | 509 | || ($int_ty::max_value() as i64 > 0 | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 509 | || ($int_ty::MAX as i64 > 0 | ~~~
usage of a legacy numeric method: src/codec.rs#L508
warning: usage of a legacy numeric method --> src/codec.rs:508:42 | 508 | if x < ($int_ty::min_value() as i64) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 508 | if x < ($int_ty::MIN as i64) | ~~~
usage of a legacy numeric method: src/codec.rs#L510
warning: usage of a legacy numeric method --> src/codec.rs:510:50 | 510 | && x > ($int_ty::max_value() as i64)) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 510 | && x > ($int_ty::MAX as i64)) | ~~~
usage of a legacy numeric method: src/codec.rs#L509
warning: usage of a legacy numeric method --> src/codec.rs:509:42 | 509 | || ($int_ty::max_value() as i64 > 0 | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 509 | || ($int_ty::MAX as i64 > 0 | ~~~
usage of a legacy numeric method: src/codec.rs#L508
warning: usage of a legacy numeric method --> src/codec.rs:508:42 | 508 | if x < ($int_ty::min_value() as i64) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 508 | if x < ($int_ty::MIN as i64) | ~~~
usage of a legacy numeric method: src/codec.rs#L510
warning: usage of a legacy numeric method --> src/codec.rs:510:50 | 510 | && x > ($int_ty::max_value() as i64)) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 510 | && x > ($int_ty::MAX as i64)) | ~~~
usage of a legacy numeric method: src/codec.rs#L509
warning: usage of a legacy numeric method --> src/codec.rs:509:42 | 509 | || ($int_ty::max_value() as i64 > 0 | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 509 | || ($int_ty::MAX as i64 > 0 | ~~~
usage of a legacy numeric method: src/codec.rs#L508
warning: usage of a legacy numeric method --> src/codec.rs:508:42 | 508 | if x < ($int_ty::min_value() as i64) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 508 | if x < ($int_ty::MIN as i64) | ~~~
usage of a legacy numeric method: src/codec.rs#L510
warning: usage of a legacy numeric method --> src/codec.rs:510:50 | 510 | && x > ($int_ty::max_value() as i64)) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 510 | && x > ($int_ty::MAX as i64)) | ~~~
usage of a legacy numeric method: src/codec.rs#L509
warning: usage of a legacy numeric method --> src/codec.rs:509:42 | 509 | || ($int_ty::max_value() as i64 > 0 | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 509 | || ($int_ty::MAX as i64 > 0 | ~~~
usage of a legacy numeric method: src/codec.rs#L508
warning: usage of a legacy numeric method --> src/codec.rs:508:42 | 508 | if x < ($int_ty::min_value() as i64) | ^^^^^^^^^^^ ... 529 | impl_tryfrom_integers!(isize, usize, i32, u32, u64); | --------------------------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#legacy_numeric_constants = note: `#[warn(clippy::legacy_numeric_constants)]` on by default = note: this warning originates in the macro `impl_tryfrom_integers` (in Nightly builds, run with -Z macro-backtrace for more info) help: use the associated constant instead | 508 | if x < ($int_ty::MIN as i64) | ~~~
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L87
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:87:69 | 87 | s if s == &TYPE_MESSAGE || s == &TYPE_SMESSAGE || s == &TYPE_PMESSAGE => { | ^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L87
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:87:46 | 87 | s if s == &TYPE_MESSAGE || s == &TYPE_SMESSAGE || s == &TYPE_PMESSAGE => { | ^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L87
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:87:24 | 87 | s if s == &TYPE_MESSAGE || s == &TYPE_SMESSAGE || s == &TYPE_PMESSAGE => { | ^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L84
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:84:77 | 84 | s if s == &TYPE_UNSUBSCRIBE || s == &TYPE_SUNSUBSCRIBE || s == &TYPE_PUNSUBSCRIBE => { | ^^^^^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L84
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:84:50 | 84 | s if s == &TYPE_UNSUBSCRIBE || s == &TYPE_SUNSUBSCRIBE || s == &TYPE_PUNSUBSCRIBE => { | ^^^^^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L84
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:84:24 | 84 | s if s == &TYPE_UNSUBSCRIBE || s == &TYPE_SUNSUBSCRIBE || s == &TYPE_PUNSUBSCRIBE => { | ^^^^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L81
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:81:73 | 81 | s if s == &TYPE_SUBSCRIBE || s == &TYPE_SSUBSCRIBE || s == &TYPE_PSUBSCRIBE => { | ^^^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L81
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:81:48 | 81 | s if s == &TYPE_SUBSCRIBE || s == &TYPE_SSUBSCRIBE || s == &TYPE_PSUBSCRIBE => { | ^^^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const
a `const` item with interior mutability should not be borrowed: src/cmd/pubsub.rs#L81
warning: a `const` item with interior mutability should not be borrowed --> src/cmd/pubsub.rs:81:24 | 81 | s if s == &TYPE_SUBSCRIBE || s == &TYPE_SSUBSCRIBE || s == &TYPE_PSUBSCRIBE => { | ^^^^^^^^^^^^^^ | = help: assign this const to a local or static variable, and use the variable here = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#borrow_interior_mutable_const = note: `#[warn(clippy::borrow_interior_mutable_const)]` on by default
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L15
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:15:1 | 15 | const TYPE_PMESSAGE: Bytes = Bytes::from_static(b"pmessage"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L14
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:14:1 | 14 | const TYPE_SMESSAGE: Bytes = Bytes::from_static(b"smessage"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L13
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:13:1 | 13 | const TYPE_MESSAGE: Bytes = Bytes::from_static(b"message"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L12
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:12:1 | 12 | const TYPE_PUNSUBSCRIBE: Bytes = Bytes::from_static(b"punsubscribe"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L11
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:11:1 | 11 | const TYPE_PSUBSCRIBE: Bytes = Bytes::from_static(b"psubscribe"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L10
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:10:1 | 10 | const TYPE_SUNSUBSCRIBE: Bytes = Bytes::from_static(b"sunsubscribe"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L9
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:9:1 | 9 | const TYPE_SSUBSCRIBE: Bytes = Bytes::from_static(b"ssubscribe"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L8
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:8:1 | 8 | const TYPE_UNSUBSCRIBE: Bytes = Bytes::from_static(b"unsubscribe"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const
a `const` item should never be interior mutable: src/cmd/pubsub.rs#L7
warning: a `const` item should never be interior mutable --> src/cmd/pubsub.rs:7:1 | 7 | const TYPE_SUBSCRIBE: Bytes = Bytes::from_static(b"subscribe"); | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | make this a static item (maybe with lazy_static) | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#declare_interior_mutable_const = note: `#[warn(clippy::declare_interior_mutable_const)]` on by default