From cd5781648a93ca851459c8397c2bb1dfa3dd393b Mon Sep 17 00:00:00 2001 From: togami2864 Date: Tue, 16 Nov 2021 02:30:54 +0900 Subject: [PATCH] add comment --- clippy_lints/src/methods/option_map_or_none.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/clippy_lints/src/methods/option_map_or_none.rs b/clippy_lints/src/methods/option_map_or_none.rs index a18db4d9371..ac2a5b70004 100644 --- a/clippy_lints/src/methods/option_map_or_none.rs +++ b/clippy_lints/src/methods/option_map_or_none.rs @@ -11,6 +11,7 @@ use super::OPTION_MAP_OR_NONE; use super::RESULT_MAP_OR_INTO_OPTION; +/// The expression inside a closure may or may not have surrounding braces fn reduce_unit_expression<'a>( cx: &LateContext<'_>, expr: &'a hir::Expr<'_>,