Use Lua for configuration #156
check.yml
on: pull_request
nightly / fmt
11s
nightly / doc
35s
Matrix: clippy
Annotations
17 errors and 3 warnings
operator precedence can trip the unwary:
src/core.rs#L1503
error: operator precedence can trip the unwary
--> src/core.rs:1503:22
|
1503 | (urg & 1 << i) != 0,
| ^^^^^^^^^^^^ help: consider parenthesizing your expression: `urg & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/core.rs#L1501
error: operator precedence can trip the unwary
--> src/core.rs:1501:29
|
1501 | && ((*(*state.selmon).sel).tags & 1 << i) != 0)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(*(*state.selmon).sel).tags & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/core.rs#L1492
error: operator precedence can trip the unwary
--> src/core.rs:1492:17
|
1492 | if (occ & 1 << i) != 0 {
| ^^^^^^^^^^^^ help: consider parenthesizing your expression: `occ & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/core.rs#L1489
error: operator precedence can trip the unwary
--> src/core.rs:1489:17
|
1489 | (urg as i32) & 1 << i,
| ^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(urg as i32) & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/core.rs#L1471
error: operator precedence can trip the unwary
--> src/core.rs:1471:34
|
1471 | state.scheme[if ((*m).tagset[(*m).seltags as usize] & 1 << i)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(*m).tagset[(*m).seltags as usize] & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/core.rs#L1503
error: operator precedence can trip the unwary
--> src/core.rs:1503:22
|
1503 | (urg & 1 << i) != 0,
| ^^^^^^^^^^^^ help: consider parenthesizing your expression: `urg & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/core.rs#L1501
error: operator precedence can trip the unwary
--> src/core.rs:1501:29
|
1501 | && ((*(*state.selmon).sel).tags & 1 << i) != 0)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(*(*state.selmon).sel).tags & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/core.rs#L1492
error: operator precedence can trip the unwary
--> src/core.rs:1492:17
|
1492 | if (occ & 1 << i) != 0 {
| ^^^^^^^^^^^^ help: consider parenthesizing your expression: `occ & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/core.rs#L1489
error: operator precedence can trip the unwary
--> src/core.rs:1489:17
|
1489 | (urg as i32) & 1 << i,
| ^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(urg as i32) & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/core.rs#L1471
error: operator precedence can trip the unwary
--> src/core.rs:1471:34
|
1471 | state.scheme[if ((*m).tagset[(*m).seltags as usize] & 1 << i)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(*m).tagset[(*m).seltags as usize] & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/key_handlers.rs#L448
error: operator precedence can trip the unwary
--> src/key_handlers.rs:448:32
|
448 | cfor!((i = 0; (newtagset & 1 << i) == 0; i += 1) {});
| ^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `newtagset & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/key_handlers.rs#L445
error: operator precedence can trip the unwary
--> src/key_handlers.rs:445:17
|
445 | if (newtagset & 1 << ((*state.selmon).pertag.curtag - 1)) == 0 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `newtagset & (1 << ((*state.selmon).pertag.curtag - 1))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/key_handlers.rs#L448
error: operator precedence can trip the unwary
--> src/key_handlers.rs:448:32
|
448 | cfor!((i = 0; (newtagset & 1 << i) == 0; i += 1) {});
| ^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `newtagset & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/key_handlers.rs#L445
error: operator precedence can trip the unwary
--> src/key_handlers.rs:445:17
|
445 | if (newtagset & 1 << ((*state.selmon).pertag.curtag - 1)) == 0 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `newtagset & (1 << ((*state.selmon).pertag.curtag - 1))`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
src/key_handlers.rs#L186
error: operator precedence can trip the unwary
--> src/key_handlers.rs:186:32
|
186 | cfor!((i = 0; ((*arg).ui() & 1 << i) == 0; i += 1) {});
| ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(*arg).ui() & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
= note: `-D clippy::precedence` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::precedence)]`
|
operator precedence can trip the unwary:
src/key_handlers.rs#L186
error: operator precedence can trip the unwary
--> src/key_handlers.rs:186:32
|
186 | cfor!((i = 0; ((*arg).ui() & 1 << i) == 0; i += 1) {});
| ^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(*arg).ui() & (1 << i)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
= note: `-D clippy::precedence` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::precedence)]`
|
nightly / clippy
Clippy had exited with the 101 exit code
|
nightly / fmt
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
nightly / doc
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
nightly / clippy
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|