Skip to content

Commit

Permalink
allow clippy::diverging_sub_expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal-So committed Feb 2, 2023
1 parent 8a43eeb commit 300b114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tauri-macros/src/command/wrapper.rs
Expand Up @@ -142,7 +142,7 @@ pub fn wrapper(attributes: TokenStream, item: TokenStream) -> TokenStream {
// which we wouldn't otherwise be able to detect purely from the token stream.
// The "error message" displayed to the user is simply the trait name.
async_command_check = quote_spanned! {return_type.span() =>
#[allow(unreachable_code)]
#[allow(unreachable_code, clippy::diverging_sub_expression)]
const _: () = if false {
trait AsyncCommandMustReturnResult {}
impl<A, B> AsyncCommandMustReturnResult for Result<A, B> {}
Expand Down

0 comments on commit 300b114

Please sign in to comment.