about summary refs log tree commit diff
diff options
context:
space:
mode:
authortogami2864 <tuabobo123@gmail.com>2021-11-16 02:30:54 +0900
committertogami2864 <tuabobo123@gmail.com>2021-11-16 02:30:54 +0900
commitcd5781648a93ca851459c8397c2bb1dfa3dd393b (patch)
treedd510c9009894164b818337067ccff8baae9f1b4
parent02e0726149a8fd9963b2b81f8c15587520445cc6 (diff)
downloadrust-cd5781648a93ca851459c8397c2bb1dfa3dd393b.tar.gz
rust-cd5781648a93ca851459c8397c2bb1dfa3dd393b.zip
add comment
-rw-r--r--clippy_lints/src/methods/option_map_or_none.rs1
1 files changed, 1 insertions, 0 deletions
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 rustc_span::symbol::sym;
 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<'_>,