Skip to content

Commit 4b27377

Browse files
committed
Fix comment
1 parent 1a1570c commit 4b27377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/functions/must_use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ fn check_needless_must_use(
115115
},
116116
);
117117
} else if attr.value_str().is_none() && is_must_use_ty(cx, return_ty(cx, item_id)) {
118-
// Ignore normal
118+
// Ignore async functions unless Future::Output type is a must_use type
119119
if sig.header.is_async() {
120120
let infcx = cx.tcx.infer_ctxt().build();
121121
if let Some(future_ty) = infcx.get_impl_future_output_ty(return_ty(cx, item_id))

0 commit comments

Comments
 (0)