Skip to content

Newlines

Newlines #88

GitHub Actions / clippy succeeded Apr 9, 2024 in 0s

clippy

1 warning

Details

Results

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

Versions

  • rustc 1.77.1 (7cf61ebde 2024-03-27)
  • cargo 1.77.1 (e52e36006 2024-03-26)
  • clippy 0.1.77 (7cf61eb 2024-03-27)

Annotations

Check warning on line 194 in src/api/server/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

passing a unit value to a function

warning: passing a unit value to a function
   --> src/api/server/mod.rs:191:9
    |
191 | /         Ok(self
192 | |             .go(withdraw_server_cancellation(server_number))
193 | |             .await?
194 | |             .throw_away())
    | |__________________________^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg
    = note: `#[warn(clippy::unit_arg)]` on by default
help: move the expression in front of the call and replace it with the unit literal `()`
    |
191 ~         self
192 +         .go(withdraw_server_cancellation(server_number))
193 +         .await?
194 +         .throw_away();
195 +         Ok(())
    |