implicit_return
false positive inside tauri::command
macro
#12872
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
L-restriction
Lint: Belongs in the restriction lint group
T-macros
Type: Issues with macros and macro expansion
Summary
I'm denying
implicit_return
(for readability) with a Tauri project which includes async commands. Somewhere inside thetauri::command
macro or thetauri::generate_handler
macro, there's an implicit return that clippy is picking up on (but only when the command function is async).But it's my understanding that clippy lints like this one should not be applied to the code inside macros (especially external ones). And obviously I can't control the code style of an external crate.
Lint Name
implicit_return
Reproducer
I've provided a minimal reproducible example repo here: https://github.com/jsimonrichard/clippy-implicit_return-tauri-command-macro-issue-mre
I saw this happen:
I expected to see this happen: no error.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: