File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1135,7 +1135,7 @@ declare_clippy_lint! {
11351135 ///
11361136 /// **Why is this bad?** When people testing a file type with `FileType::is_file`
11371137 /// they are testing whether a path is something they can get bytes from. But
1138- /// `is_file` doesn't cover special file types in unix-like systems. and not covering
1138+ /// `is_file` doesn't cover special file types in unix-like systems, and doesn't cover
11391139 /// symlink in windows. Using `!FileType::is_dir()` is a better way to that intention.
11401140 ///
11411141 /// **Example:**
@@ -1149,7 +1149,7 @@ declare_clippy_lint! {
11491149 /// }
11501150 /// ```
11511151 ///
1152- /// should be writing as:
1152+ /// should be written as:
11531153 ///
11541154 /// ```rust,ignore
11551155 /// let metadata = std::fs::metadata("foo.txt")?;
@@ -1160,8 +1160,8 @@ declare_clippy_lint! {
11601160 /// }
11611161 /// ```
11621162 pub FILETYPE_IS_FILE ,
1163- style ,
1164- "`FileType::is_file` is not recommended to test for readable file type. "
1163+ restriction ,
1164+ "`FileType::is_file` is not recommended to test for readable file type"
11651165}
11661166
11671167declare_lint_pass ! ( Methods => [
You can’t perform that action at this time.
0 commit comments