Skip to content

Cargo.lock

Cargo.lock #97

GitHub Actions / clippy succeeded Dec 10, 2023 in 0s

clippy

2 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 2
Note 0
Help 0

Versions

  • rustc 1.76.0-nightly (06e02d5b2 2023-12-09)
  • cargo 1.76.0-nightly (978722961 2023-12-06)
  • clippy 0.1.76 (06e02d5 2023-12-09)

Annotations

Check warning on line 87 in src/conf/net.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant field names in struct initialization

warning: redundant field names in struct initialization
  --> src/conf/net.rs:87:13
   |
87 |             tcp_keepalive: tcp_keepalive,
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `tcp_keepalive`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
   = note: `#[warn(clippy::redundant_field_names)]` on by default

Check warning on line 11 in realm_core/src/tcp/hook.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

writing `&Vec` instead of `&[_]` involves a new object where a slice will do

warning: writing `&Vec` instead of `&[_]` involves a new object where a slice will do
  --> realm_core/src/tcp/hook.rs:11:19
   |
11 |     extra_raddrs: &'a Vec<RemoteAddr>,
   |                   ^^^^^^^^^^^^^^^^^^^ help: change this to: `&'a [RemoteAddr]`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
   = note: `#[warn(clippy::ptr_arg)]` on by default