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! {
1135
1135
///
1136
1136
/// **Why is this bad?** When people testing a file type with `FileType::is_file`
1137
1137
/// 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
1139
1139
/// symlink in windows. Using `!FileType::is_dir()` is a better way to that intention.
1140
1140
///
1141
1141
/// **Example:**
@@ -1149,7 +1149,7 @@ declare_clippy_lint! {
1149
1149
/// }
1150
1150
/// ```
1151
1151
///
1152
- /// should be writing as:
1152
+ /// should be written as:
1153
1153
///
1154
1154
/// ```rust,ignore
1155
1155
/// let metadata = std::fs::metadata("foo.txt")?;
@@ -1160,8 +1160,8 @@ declare_clippy_lint! {
1160
1160
/// }
1161
1161
/// ```
1162
1162
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"
1165
1165
}
1166
1166
1167
1167
declare_lint_pass ! ( Methods => [
You can’t perform that action at this time.
0 commit comments