about summary refs log tree commit diff
path: root/users/isomer/keys.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-02-01T10·17+0100
committerclbot <clbot@tvl.fyi>2023-02-01T13·43+0000
commit2551adb4f1b127fd5bef4c2bb96fd361e4fcc0df (patch)
tree8b0cc827bee3953f20a3da5047cc16bacc6ebc33 /users/isomer/keys.nix
parent361ffd7903ab129657a7dcc37654f3c077321027 (diff)
refactor(tvix/nix-compat): operator precedence can trip the unwary r/5804
warning: operator precedence can trip the unwary
  --> nix-compat/src/nixbase32.rs:41:23
   |
41 |                 c |= ((input[i + 1] as u16) << 8 - j as u16) as u8
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider parenthesizing your expression: `(input[i + 1] as u16) << (8 - j as u16)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
   = note: `#[warn(clippy::precedence)]` on by default

Change-Id: I091071d649abf4ed38f5f4e39a0c5d21a0459bff
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7996
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'users/isomer/keys.nix')
0 files changed, 0 insertions, 0 deletions