Update clippy_lints/src/await_holding_invalid.rs

Co-authored-by: llogiq <bogusandre@gmail.com>
This commit is contained in:
Lily Mara 2022-04-18 10:32:11 -07:00 committed by GitHub
parent 228ce783bc
commit ee3ebb35f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,7 +269,7 @@ fn emit_invalid_type(cx: &LateContext<'_>, span: Span, disallowed: &DisallowedTy
&format!("`{type_name}` may not be held across an `await` point per `clippy.toml`",),
|diag| {
if let Some(reason) = reason {
diag.note(format!("{reason} (according to clippy.toml)"));
diag.note(reason.clone());
}
},
);