We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: unneeded
statement
Relates to: https://rust-lang.github.io/rust-clippy/master/index.html#/needless_return
nightly-x86_64-unknown-linux-gnu (default) rustc 1.83.0-nightly (06bb8364a 2024-10-01)
error: unneeded `return` statement --> tests/servers/udp/contract.rs:267:25 | 267 | env.stop().await; | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 267 | env.stop().awaitenv.stop().await; | ~~~~~~~~~~~~~~~~~ error: unneeded `return` statement --> tests/servers/udp/environment.rs:113:44 | 113 | sleep(Duration::from_secs(1)).await; | ^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return help: remove `return` | 113 | sleep(Duration::from_secs(1)).awaitsleep(Duration::from_secs(1)).await; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: could not compile `torrust-tracker` (test "integration") due to 118 previous errors
It is complaining about #[tokio::test] using a semicolon in the last statement.
#[tokio::test]
#[tokio::test] async fn blab_bla() { let for = "bar"; // <- this semicolon }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Relates to: https://rust-lang.github.io/rust-clippy/master/index.html#/needless_return
nightly-x86_64-unknown-linux-gnu (default)
rustc 1.83.0-nightly (06bb8364a 2024-10-01)
It is complaining about
#[tokio::test]
using a semicolon in the last statement.The text was updated successfully, but these errors were encountered: