You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, this is rather a minor issue but just one of slight annoyance for those of us trying to clear up cargo clippy warnings. This pops up when #[notan_main] is applied to my main function...
~$ cargo clippy
warning: recursing into entrypoint `main`
--> src/main.rs:__:__
|
31 | fn main() ->Result<(), String> {
| ^^^^
|
= note: `#[warn(clippy::main_recursion)]` on by default
= help: consider using another functionfor this recursion
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#main_recursion
I just wondered if there was a way we could remedy this?
I have tried putting a #[allow(clippy::main_recursion)] before and after #[notan_main] but to no avail.
Just wondered if anyone could help, if we find a good solution I could open some kind of PR?
Hi there, this is rather a minor issue but just one of slight annoyance for those of us trying to clear up
cargo clippy
warnings. This pops up when#[notan_main]
is applied to my main function...I just wondered if there was a way we could remedy this?
I have tried putting a
#[allow(clippy::main_recursion)]
before and after#[notan_main]
but to no avail.Just wondered if anyone could help, if we find a good solution I could open some kind of PR?
Edit: I have found a solution and opened a PR
The text was updated successfully, but these errors were encountered: