Skip to content

Commit c522354

Browse files
Update clippy_lints/src/methods/unbuffered_bytes.rs
Co-authored-by: Samuel Tardieu <[email protected]>
1 parent d761222 commit c522354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/unbuffered_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use rustc_span::sym;
99
/// lint to detect `.bytes()` on an unbuffered type such as a `File` or `TcpStream`
1010
pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, recv: &hir::Expr<'_>) {
1111
// Retrieve the DefId of the BufRead trait
12-
// Sadly BufRead does not have a diagnostic item or a lang item
12+
// FIXME: add a diagnostic item for `BufRead`
1313
let Some(buf_read) = get_trait_def_id(cx.tcx, &paths::BUF_READ) else {
1414
return;
1515
};

0 commit comments

Comments
 (0)