Skip to content

Commit 228ce78

Browse files
Update clippy_lints/src/await_holding_invalid.rs
Co-authored-by: llogiq <bogusandre@gmail.com>
1 parent 6d0baf2 commit 228ce78

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

0 commit comments

Comments
 (0)