Skip to content

Commit b5be2a3

Browse files
committed
fix: clippy warnings
These did not appear locally due to CI using nightly.
1 parent de3849b commit b5be2a3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ many_single_char_names = "warn" # too many single character bindings
206206
map_err_ignore = "warn" # `map_err` should not ignore the original error
207207
map_unwrap_or = "warn" # using `.map(f).unwrap_or(a)` or `.map(f).unwrap_or_else(func)`, which are more succinctly expressed as `map_or(a, f)` or `map_or_else(a, f)`
208208
match_bool = "warn" # a `match` on a boolean expression instead of an `if..else` block
209-
match_on_vec_items = "warn" # matching on vector elements can panic
210209
match_same_arms = "warn" # `match` with identical arm bodies
211210
match_wild_err_arm = "warn" # a `match` with `Err(_)` arm and take drastic actions
212211
maybe_infinite_iter = "warn" # possible infinite iteration

src/metrics/info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl NodeInfo {
3030
};
3131

3232
// SAFETY: `utsname` is initialized, and valid, and return value is checked.
33-
if unsafe { nix::libc::uname(&mut utsname) } != 0_i32 {
33+
if unsafe { nix::libc::uname(&raw mut utsname) } != 0_i32 {
3434
return Err(anyhow::anyhow!("uname return an error"));
3535
};
3636

0 commit comments

Comments
 (0)