You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clippy_lints/src/verbose_file_reads.rs
+13-12
Original file line number
Diff line number
Diff line change
@@ -8,19 +8,22 @@ declare_clippy_lint! {
8
8
/// **What it does:** Checks for use of File::read_to_end and File::read_to_string.
9
9
///
10
10
/// **Why is this bad?** `fs::{read, read_to_string}` provide the same functionality when `buf` is empty with fewer imports and no intermediate values.
11
-
///
11
+
/// See also: [fs::read docs](https://doc.rust-lang.org/std/fs/fn.read.html), [fs::read_to_string docs](https://doc.rust-lang.org/std/fs/fn.read_to_string.html)
0 commit comments