From ded2bb54642507c7a037a46bce31078026078672 Mon Sep 17 00:00:00 2001 From: Micha White Date: Thu, 9 Jun 2022 21:47:24 -0400 Subject: [PATCH] Slight documentation change --- clippy_lints/src/matches/single_match.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clippy_lints/src/matches/single_match.rs b/clippy_lints/src/matches/single_match.rs index 888ace687..92091a0c3 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);