Skip to content

Commit ee3ebb3

Browse files
Update clippy_lints/src/await_holding_invalid.rs
Co-authored-by: llogiq <[email protected]>
1 parent 228ce78 commit ee3ebb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/await_holding_invalid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ fn emit_invalid_type(cx: &LateContext<'_>, span: Span, disallowed: &DisallowedTy
269269
&format!("`{type_name}` may not be held across an `await` point per `clippy.toml`",),
270270
|diag| {
271271
if let Some(reason) = reason {
272-
diag.note(format!("{reason} (according to clippy.toml)"));
272+
diag.note(reason.clone());
273273
}
274274
},
275275
);

0 commit comments

Comments
 (0)