Skip to content

Remove runtime benchmark code #38

Remove runtime benchmark code

Remove runtime benchmark code #38

GitHub Actions / clippy succeeded Nov 29, 2023 in 0s

clippy

10 warnings

Details

Results

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

Versions

  • rustc 1.73.0 (cc66ad468 2023-10-03)
  • cargo 1.73.0 (9c4383fb5 2023-08-26)
  • clippy 0.1.73 (cc66ad46 2023-10-03)

Annotations

Check warning on line 44 in mfio-rt/src/util.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant guard

warning: redundant guard
  --> mfio-rt/src/util.rs:44:39
   |
44 |                 (Some(_), Some(b)) if b == Component::ParentDir => return None,
   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards
help: try
   |
44 -                 (Some(_), Some(b)) if b == Component::ParentDir => return None,
44 +                 (Some(_), Some(Component::ParentDir)) => return None,
   |

Check warning on line 43 in mfio-rt/src/util.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant guard

warning: redundant guard
  --> mfio-rt/src/util.rs:43:39
   |
43 |                 (Some(a), Some(b)) if b == Component::CurDir => comps.push(a),
   |                                       ^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards
   = note: `#[warn(clippy::redundant_guards)]` on by default
help: try
   |
43 -                 (Some(a), Some(b)) if b == Component::CurDir => comps.push(a),
43 +                 (Some(a), Some(Component::CurDir)) => comps.push(a),
   |

Check warning on line 128 in mfio-rt/src/util.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

associated function `null` is never used

warning: associated function `null` is never used
   --> mfio-rt/src/util.rs:128:12
    |
127 | impl RawBox {
    | ----------- associated function in this implementation
128 |     pub fn null() -> Self {
    |            ^^^^

Check warning on line 19 in mfio-rt/src/native/impls/unix_extra.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `new_socket` is never used

warning: function `new_socket` is never used
  --> mfio-rt/src/native/impls/unix_extra.rs:19:15
   |
19 | pub(crate) fn new_socket(
   |               ^^^^^^^^^^

Check warning on line 7 in mfio-rt/src/native/impls/unix_extra.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `new_for_addr` is never used

warning: function `new_for_addr` is never used
 --> mfio-rt/src/native/impls/unix_extra.rs:7:15
  |
7 | pub(crate) fn new_for_addr(
  |               ^^^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default

Check warning on line 44 in mfio-rt/src/util.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant guard

warning: redundant guard
  --> mfio-rt/src/util.rs:44:39
   |
44 |                 (Some(_), Some(b)) if b == Component::ParentDir => return None,
   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards
help: try
   |
44 -                 (Some(_), Some(b)) if b == Component::ParentDir => return None,
44 +                 (Some(_), Some(Component::ParentDir)) => return None,
   |

Check warning on line 43 in mfio-rt/src/util.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant guard

warning: redundant guard
  --> mfio-rt/src/util.rs:43:39
   |
43 |                 (Some(a), Some(b)) if b == Component::CurDir => comps.push(a),
   |                                       ^^^^^^^^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards
   = note: `#[warn(clippy::redundant_guards)]` on by default
help: try
   |
43 -                 (Some(a), Some(b)) if b == Component::CurDir => comps.push(a),
43 +                 (Some(a), Some(Component::CurDir)) => comps.push(a),
   |

Check warning on line 128 in mfio-rt/src/util.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

associated function `null` is never used

warning: associated function `null` is never used
   --> mfio-rt/src/util.rs:128:12
    |
127 | impl RawBox {
    | ----------- associated function in this implementation
128 |     pub fn null() -> Self {
    |            ^^^^

Check warning on line 19 in mfio-rt/src/native/impls/unix_extra.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `new_socket` is never used

warning: function `new_socket` is never used
  --> mfio-rt/src/native/impls/unix_extra.rs:19:15
   |
19 | pub(crate) fn new_socket(
   |               ^^^^^^^^^^

Check warning on line 7 in mfio-rt/src/native/impls/unix_extra.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `new_for_addr` is never used

warning: function `new_for_addr` is never used
 --> mfio-rt/src/native/impls/unix_extra.rs:7:15
  |
7 | pub(crate) fn new_for_addr(
  |               ^^^^^^^^^^^^
  |
  = note: `#[warn(dead_code)]` on by default