Skip to content
GitHub Actions / clippy succeeded Feb 1, 2024 in 1s

clippy

2 warnings

Details

Results

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

Versions

  • rustc 1.75.0 (82e1608df 2023-12-21)
  • cargo 1.75.0 (1d8b05cdd 2023-11-20)
  • clippy 0.1.75 (82e1608 2023-12-21)

Annotations

Check warning on line 492 in ibverbs/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this returns a `Result<_, ()>`

warning: this returns a `Result<_, ()>`
   --> ibverbs/src/lib.rs:489:5
    |
489 | /     pub fn poll<'c>(
490 | |         &self,
491 | |         completions: &'c mut [ffi::ibv_wc],
492 | |     ) -> Result<&'c mut [ffi::ibv_wc], ()> {
    | |__________________________________________^
    |
    = help: use a custom `Error` type instead
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err

Check warning on line 441 in ibverbs/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this returns a `Result<_, ()>`

warning: this returns a `Result<_, ()>`
   --> ibverbs/src/lib.rs:441:5
    |
441 |     pub fn alloc_pd(&self) -> Result<ProtectionDomain<'_>, ()> {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = help: use a custom `Error` type instead
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#result_unit_err
    = note: `#[warn(clippy::result_unit_err)]` on by default