New lint: suggest using fs::{read,read_to_string} over File counterparts #4916
Labels
A-lint
Area: New lints
good-first-issue
These issues are a good way to get started with Clippy
L-complexity
Lint: Belongs in the complexity lint group
In specific, we recommend to use:
std::fs::read_to_string
overFile::read_to_string
std::fs::read
overFile::read_to_end
But only when buffer is empty.
The text was updated successfully, but these errors were encountered: