Skip to content
New issue

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

Uneeded warning? (recursing into entrypoint main) #159

Closed
danny-burrows opened this issue Oct 13, 2022 · 1 comment
Closed

Uneeded warning? (recursing into entrypoint main) #159

danny-burrows opened this issue Oct 13, 2022 · 1 comment

Comments

@danny-burrows
Copy link
Contributor

danny-burrows commented Oct 13, 2022

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 function for 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?

Edit: I have found a solution and opened a PR

@Nazariglez
Copy link
Owner

Closing it, thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants