Skip to content

Commit 4317895

Browse files
authored
Merge pull request #23 from QiangHeisenberg/rust
流程控制、字符串、集合容器三个章节的lint信息修改
2 parents da1dd7b + 3b30b56 commit 4317895

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/safe-guides/coding_practice/control-flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ if !sad_people.is_empty() {
434434
| [filter_map_identity](https://rust-lang.github.io/rust-clippy/master/#filter_map_identity) | yes | no | complexity | warn |
435435
| [filter_next](https://rust-lang.github.io/rust-clippy/master/#filter_next) | yes | no | complexity | warn |
436436
| [flat_map_identity](https://rust-lang.github.io/rust-clippy/master/#flat_map_identity) | yes | no | complexity | warn |
437-
| [flat_map_option](https://rust-lang.github.io/rust-clippy/master/#flat_map_option) | yes | no | complexity | warn |
437+
| [flat_map_option](https://rust-lang.github.io/rust-clippy/master/#flat_map_option) | yes | no | pedantic | allow |
438438

439439
### 【描述】
440440

src/safe-guides/coding_practice/strings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub fn find<'a, S: Into<Cow<'a, str>>>(input: S) -> Cow<'a, str> {
156156

157157
| lint name | Clippy 可检测 | Rustc 可检测 | Lint Group | level |
158158
| ------------------------------------------------------------ | ------------- | ------------ | ---------- | ----- |
159-
| [to_string_in_display](https://rust-lang.github.io/rust-clippy/master/#to_string_in_display) | yes | no | complexity | warn |
159+
| [to_string_in_display](https://rust-lang.github.io/rust-clippy/master/#to_string_in_display) | yes | no | correctness | deny |
160160

161161
### 【描述】
162162

@@ -232,7 +232,7 @@ x = x + ", World";
232232

233233
| lint name | Clippy 可检测 | Rustc 可检测 | Lint Group | level |
234234
| ------------------------------------------------------------ | ------------- | ------------ | ---------- | ----- |
235-
| [string_lit_as_bytes](https://rust-lang.github.io/rust-clippy/master/#string_lit_as_bytes) | yes | no | complexity | warn |
235+
| [string_lit_as_bytes](https://rust-lang.github.io/rust-clippy/master/#string_lit_as_bytes) | yes | no | nursery | allow |
236236

237237
### 【描述】
238238

0 commit comments

Comments
 (0)