diff options
| author | Micha White <botahamec@outlook.com> | 2022-06-09 21:47:24 -0400 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2022-06-10 13:12:03 -0400 |
| commit | ded2bb54642507c7a037a46bce31078026078672 (patch) | |
| tree | 99088fff8ce279134147b718d0a3387766a9ca68 | |
| parent | f3dc7ae370a67988e48a573e332247717ce9bee4 (diff) | |
| download | rust-ded2bb54642507c7a037a46bce31078026078672.tar.gz rust-ded2bb54642507c7a037a46bce31078026078672.zip | |
Slight documentation change
| -rw-r--r-- | clippy_lints/src/matches/single_match.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clippy_lints/src/matches/single_match.rs b/clippy_lints/src/matches/single_match.rs index 888ace687bb..92091a0c339 100644 --- a/clippy_lints/src/matches/single_match.rs +++ b/clippy_lints/src/matches/single_match.rs @@ -147,7 +147,8 @@ fn check_opt_like<'a>( } } -/// Returns `true` if all of the types in the pattern are candidate enums +/// Returns `true` if all of the types in the pattern are enums which we know +/// won't be expanded in the future fn pat_in_candidate_enum<'a>(cx: &LateContext<'a>, ty: Ty<'a>, pat: &Pat<'_>) -> bool { let mut paths_and_types = Vec::new(); collect_pat_paths(&mut paths_and_types, cx, pat, ty); |
