Skip to content

Commit 995561d

Browse files
Suppress clippy divergence warning
1 parent 9aea0e5 commit 995561d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tracing-attributes/src/expand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub(crate) fn gen_function<'a, B: ToTokens + 'a>(
5858
// The `#[allow(unreachable_code)]` is given because the return
5959
// statement is unreachable, but does affect inference.
6060
let fake_return_edge = quote_spanned! {return_type.span()=>
61-
#[allow(unreachable_code)]
61+
#[allow(unreachable_code, clippy::diverging_sub_expression)]
6262
if false {
6363
let __tracing_attr_fake_return: #return_type =
6464
unreachable!("this is just for type inference, and is unreachable code");

0 commit comments

Comments
 (0)