la10736 / rstest

Fixture-based test framework for Rust
Apache License 2.0
1.21k stars 43 forks source link

replace return <expr>; with <expr> [needless_return] #251

Closed dr-kernel closed 5 months ago

dr-kernel commented 6 months ago

When using tokio::test I'm getting replace return <expr>; with <expr> [needless_return] clippy warning.
Not a huge deal, but would be nice to not see it in all of my async tests.

rstest = 0.19 tokio = 1.37

Thanks!

la10736 commented 6 months ago

What's about if you use just tokio? Anyway, can you just post a simple example?

la10736 commented 5 months ago

Can I close this ticket? Did you have tried what's happen if you rewrite your test with just tokio?

dr-kernel commented 5 months ago

Sorry I haven't had a chance to retry this.
It's odd as It might be an issue with rust_analyzer, as sometimes I have the clippy warning and sometimes not. I'll close for now until I can repo it consistently.