Skip to content

Clippy lints: Forbid shadowing #49

Clippy lints: Forbid shadowing

Clippy lints: Forbid shadowing #49

Triggered via pull request July 16, 2024 21:31
Status Failure
Total duration 1m 19s
Artifacts

rust.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

19 errors and 26 warnings
`c` shadows a previous, unrelated binding: src/lib.rs#L1430
error: `c` shadows a previous, unrelated binding --> src/lib.rs:1430:13 | 1430 | let c = a.clone(); | ^ | note: previous binding is here --> src/lib.rs:1423:13 | 1423 | let c = a.clone(); | ^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`mut b` shadows a previous, unrelated binding: src/lib.rs#L1429
error: `mut b` shadows a previous, unrelated binding --> src/lib.rs:1429:17 | 1429 | let mut b = BitSet::from_bytes(&[0b01101010]); | ^ | note: previous binding is here --> src/lib.rs:1422:13 | 1422 | let b = BitSet::new(); | ^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`mut a` shadows a previous, unrelated binding: src/lib.rs#L1428
error: `mut a` shadows a previous, unrelated binding --> src/lib.rs:1428:17 | 1428 | let mut a = BitSet::from_bytes(&[0b11100010]); | ^ | note: previous binding is here --> src/lib.rs:1421:13 | 1421 | let mut a = BitSet::from_bytes(&[0b10100010]); | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`b` shadows a previous, unrelated binding: src/lib.rs#L1422
error: `b` shadows a previous, unrelated binding --> src/lib.rs:1422:13 | 1422 | let b = BitSet::new(); | ^ | note: previous binding is here --> src/lib.rs:1414:13 | 1414 | let mut b = BitSet::new(); | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`mut a` shadows a previous, unrelated binding: src/lib.rs#L1421
error: `mut a` shadows a previous, unrelated binding --> src/lib.rs:1421:17 | 1421 | let mut a = BitSet::from_bytes(&[0b10100010]); | ^ | note: previous binding is here --> src/lib.rs:1411:13 | 1411 | let mut a = BitSet::new(); | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`mut b` shadows a previous, unrelated binding: src/lib.rs#L1400
error: `mut b` shadows a previous, unrelated binding --> src/lib.rs:1400:17 | 1400 | let mut b = BitSet::from_bytes(&[0b01100010]); | ^ | note: previous binding is here --> src/lib.rs:1394:13 | 1394 | let b = BitSet::from_bytes(&[0b11111111]); | ^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`mut a` shadows a previous, unrelated binding: src/lib.rs#L1399
error: `mut a` shadows a previous, unrelated binding --> src/lib.rs:1399:17 | 1399 | let mut a = BitSet::from_bytes(&[0b10100010]); | ^ | note: previous binding is here --> src/lib.rs:1393:13 | 1393 | let mut a = BitSet::new(); | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`b` shadows a previous, unrelated binding: src/lib.rs#L1394
error: `b` shadows a previous, unrelated binding --> src/lib.rs:1394:13 | 1394 | let b = BitSet::from_bytes(&[0b11111111]); | ^ | note: previous binding is here --> src/lib.rs:1388:13 | 1388 | let b = BitSet::from_bytes(&[0b10100010]); | ^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`mut a` shadows a previous, unrelated binding: src/lib.rs#L1393
error: `mut a` shadows a previous, unrelated binding --> src/lib.rs:1393:17 | 1393 | let mut a = BitSet::new(); | ^ | note: previous binding is here --> src/lib.rs:1387:13 | 1387 | let mut a = BitSet::from_bytes(&[0b00000000]); | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`c` shadows a previous, unrelated binding: src/lib.rs#L1377
error: `c` shadows a previous, unrelated binding --> src/lib.rs:1377:13 | 1377 | let c = a.clone(); | ^ | note: previous binding is here --> src/lib.rs:1368:13 | 1368 | let c = a.clone(); | ^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`mut b` shadows a previous, unrelated binding: src/lib.rs#L1376
error: `mut b` shadows a previous, unrelated binding --> src/lib.rs:1376:17 | 1376 | let mut b = BitSet::from_bytes(&[0b01100010]); | ^ | note: previous binding is here --> src/lib.rs:1367:13 | 1367 | let mut b = BitSet::new(); | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`mut a` shadows a previous, unrelated binding: src/lib.rs#L1375
error: `mut a` shadows a previous, unrelated binding --> src/lib.rs:1375:17 | 1375 | let mut a = BitSet::from_bytes(&[0b10100010]); | ^ | note: previous binding is here --> src/lib.rs:1366:13 | 1366 | let mut a = BitSet::from_bytes(&[0b10100010]); | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`c` shadows a previous, unrelated binding: src/lib.rs#L1368
error: `c` shadows a previous, unrelated binding --> src/lib.rs:1368:13 | 1368 | let c = a.clone(); | ^ | note: previous binding is here --> src/lib.rs:1359:13 | 1359 | let c = a.clone(); | ^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`mut b` shadows a previous, unrelated binding: src/lib.rs#L1367
error: `mut b` shadows a previous, unrelated binding --> src/lib.rs:1367:17 | 1367 | let mut b = BitSet::new(); | ^ | note: previous binding is here --> src/lib.rs:1358:13 | 1358 | let mut b = BitSet::from_bytes(&[0b00000000]); | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`mut a` shadows a previous, unrelated binding: src/lib.rs#L1366
error: `mut a` shadows a previous, unrelated binding --> src/lib.rs:1366:17 | 1366 | let mut a = BitSet::from_bytes(&[0b10100010]); | ^ | note: previous binding is here --> src/lib.rs:1357:13 | 1357 | let mut a = BitSet::from_bytes(&[0b10100010]); | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`mut b` shadows a previous, unrelated binding: src/lib.rs#L1346
error: `mut b` shadows a previous, unrelated binding --> src/lib.rs:1346:17 | 1346 | let mut b = BitSet::from_bytes(&[0b01100010]); | ^ | note: previous binding is here --> src/lib.rs:1338:13 | 1338 | let mut b = BitSet::new(); | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`mut a` shadows a previous, unrelated binding: src/lib.rs#L1345
error: `mut a` shadows a previous, unrelated binding --> src/lib.rs:1345:17 | 1345 | let mut a = BitSet::from_bytes(&[0b10100010]); | ^ | note: previous binding is here --> src/lib.rs:1336:13 | 1336 | let mut a = BitSet::new(); | ^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated
`idxs` shadows a previous, unrelated binding: src/lib.rs#L1150
error: `idxs` shadows a previous, unrelated binding --> src/lib.rs:1150:13 | 1150 | let idxs: Vec<_> = long.iter().collect(); | ^^^^ | note: previous binding is here --> src/lib.rs:1143:13 | 1143 | let idxs: Vec<_> = bit_vec.iter().collect(); | ^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#shadow_unrelated note: the lint level is defined here --> src/lib.rs:54:11 | 54 | #![forbid(clippy::shadow_unrelated)] | ^^^^^^^^^^^^^^^^^^^^^^^^
clippy
Clippy had exited with the 101 exit code
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 following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1, swatinem/rust-cache@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-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/
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 following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-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/
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 following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-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/
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/
build
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
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/
Miri
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/