Merge pull request #82 from contain-rs/miniserde #23
Annotations
43 warnings
useless use of `vec!`:
src/lib.rs#L2607
warning: useless use of `vec!`
--> src/lib.rs:2607:21
|
2607 | let bools = vec![true, false, true, true];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[true, false, true, true]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
|
useless use of `vec!`:
src/lib.rs#L2125
warning: useless use of `vec!`
--> src/lib.rs:2125:21
|
2125 | let bools = vec![true, false, true, true];
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can use an array directly: `[true, false, true, true]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
= note: `#[warn(clippy::useless_vec)]` on by default
|
casting integer literal to `u64` is unnecessary:
src/lib.rs#L2763
warning: casting integer literal to `u64` is unnecessary
--> src/lib.rs:2763:24
|
2763 | assert_eq!(0 as u64, tbits.count_zeros());
| ^^^^^^^^ help: try: `0_u64`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
|
casting integer literal to `u64` is unnecessary:
src/lib.rs#L2745
warning: casting integer literal to `u64` is unnecessary
--> src/lib.rs:2745:24
|
2745 | assert_eq!(0 as u64, f.count_ones());
| ^^^^^^^^ help: try: `0_u64`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `#[warn(clippy::unnecessary_cast)]` on by default
|
used `assert_eq!` with a literal bool:
src/lib.rs#L2420
warning: used `assert_eq!` with a literal bool
--> src/lib.rs:2420:9
|
2420 | assert_eq!(s[5 * U32_BITS + 2], true);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
2420 - assert_eq!(s[5 * U32_BITS + 2], true);
2420 + assert!(s[5 * U32_BITS + 2]);
|
|
used `assert_eq!` with a literal bool:
src/lib.rs#L2419
warning: used `assert_eq!` with a literal bool
--> src/lib.rs:2419:9
|
2419 | assert_eq!(s[5 * U32_BITS + 1], false);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
2419 - assert_eq!(s[5 * U32_BITS + 1], false);
2419 + assert!(!s[5 * U32_BITS + 1]);
|
|
this operation has no effect:
src/lib.rs#L2418
warning: this operation has no effect
--> src/lib.rs:2418:22
|
2418 | assert_eq!(s[5 * U32_BITS - 0], true);
| ^^^^^^^^^^^^^^^^ help: consider reducing it to: `5 * U32_BITS`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op
= note: `#[warn(clippy::identity_op)]` on by default
|
used `assert_eq!` with a literal bool:
src/lib.rs#L2418
warning: used `assert_eq!` with a literal bool
--> src/lib.rs:2418:9
|
2418 | assert_eq!(s[5 * U32_BITS - 0], true);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
2418 - assert_eq!(s[5 * U32_BITS - 0], true);
2418 + assert!(s[5 * U32_BITS - 0]);
|
|
used `assert_eq!` with a literal bool:
src/lib.rs#L2417
warning: used `assert_eq!` with a literal bool
--> src/lib.rs:2417:9
|
2417 | assert_eq!(s[5 * U32_BITS - 1], true);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
2417 - assert_eq!(s[5 * U32_BITS - 1], true);
2417 + assert!(s[5 * U32_BITS - 1]);
|
|
used `assert_eq!` with a literal bool:
src/lib.rs#L2368
warning: used `assert_eq!` with a literal bool
--> src/lib.rs:2368:9
|
2368 | assert_eq!(s[5 * U32_BITS + 1], false);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
2368 - assert_eq!(s[5 * U32_BITS + 1], false);
2368 + assert!(!s[5 * U32_BITS + 1]);
|
|
used `assert_eq!` with a literal bool:
src/lib.rs#L2366
warning: used `assert_eq!` with a literal bool
--> src/lib.rs:2366:9
|
2366 | assert_eq!(s[5 * U32_BITS], false);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
2366 - assert_eq!(s[5 * U32_BITS], false);
2366 + assert!(!s[5 * U32_BITS]);
|
|
used `assert_eq!` with a literal bool:
src/lib.rs#L2363
warning: used `assert_eq!` with a literal bool
--> src/lib.rs:2363:9
|
2363 | assert_eq!(s[5 * U32_BITS - 1], true);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
2363 - assert_eq!(s[5 * U32_BITS - 1], true);
2363 + assert!(s[5 * U32_BITS - 1]);
|
|
used `assert_eq!` with a literal bool:
src/lib.rs#L2362
warning: used `assert_eq!` with a literal bool
--> src/lib.rs:2362:9
|
2362 | assert_eq!(s[5 * U32_BITS - 2], true);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
help: replace it with `assert!(..)`
|
2362 - assert_eq!(s[5 * U32_BITS - 2], true);
2362 + assert!(s[5 * U32_BITS - 2]);
|
|
used `assert_eq!` with a literal bool:
src/lib.rs#L2359
warning: used `assert_eq!` with a literal bool
--> src/lib.rs:2359:9
|
2359 | assert_eq!(s[5 * U32_BITS - 3], false);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
= note: `#[warn(clippy::bool_assert_comparison)]` on by default
help: replace it with `assert!(..)`
|
2359 - assert_eq!(s[5 * U32_BITS - 3], false);
2359 + assert!(!s[5 * U32_BITS - 3]);
|
|
this is a decimal constant:
src/lib.rs#L2702
warning: this is a decimal constant
--> src/lib.rs:2702:34
|
2702 | assert_eq!(&[01, 00, 02, 03][..], &*a.to_bytes());
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zero_prefixed_literal
help: if you mean to use a decimal constant, remove the `0` to avoid confusion
|
2702 | assert_eq!(&[01, 00, 02, 3][..], &*a.to_bytes());
| ~
help: if you mean to use an octal constant, use `0o`
|
2702 | assert_eq!(&[01, 00, 02, 0o3][..], &*a.to_bytes());
| ~~~
|
this is a decimal constant:
src/lib.rs#L2702
warning: this is a decimal constant
--> src/lib.rs:2702:30
|
2702 | assert_eq!(&[01, 00, 02, 03][..], &*a.to_bytes());
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zero_prefixed_literal
help: if you mean to use a decimal constant, remove the `0` to avoid confusion
|
2702 | assert_eq!(&[01, 00, 2, 03][..], &*a.to_bytes());
| ~
help: if you mean to use an octal constant, use `0o`
|
2702 | assert_eq!(&[01, 00, 0o2, 03][..], &*a.to_bytes());
| ~~~
|
this is a decimal constant:
src/lib.rs#L2702
warning: this is a decimal constant
--> src/lib.rs:2702:22
|
2702 | assert_eq!(&[01, 00, 02, 03][..], &*a.to_bytes());
| ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#zero_prefixed_literal
= note: `#[warn(clippy::zero_prefixed_literal)]` on by default
help: if you mean to use a decimal constant, remove the `0` to avoid confusion
|
2702 | assert_eq!(&[1, 00, 02, 03][..], &*a.to_bytes());
| ~
help: if you mean to use an octal constant, use `0o`
|
2702 | assert_eq!(&[0o1, 00, 02, 03][..], &*a.to_bytes());
| ~~~
|
fmt
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/.
|
fmt
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/
|
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/
|
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/
|
docs
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions-rs/toolchain@v1, swatinem/rust-cache@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/.
|
docs
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions-rs/toolchain@v1, swatinem/rust-cache@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/
|
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/
|
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/
|
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/
|
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/
|
docs
The `save-state` 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/
|
docs
The `save-state` 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/
|
docs
The `save-state` 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/
|
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/
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Miri
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Miri
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|