Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit cd57816

Browse files
committed
add comment
1 parent 02e0726 commit cd57816

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clippy_lints/src/methods/option_map_or_none.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use rustc_span::symbol::sym;
1111
use super::OPTION_MAP_OR_NONE;
1212
use super::RESULT_MAP_OR_INTO_OPTION;
1313

14+
/// The expression inside a closure may or may not have surrounding braces
1415
fn reduce_unit_expression<'a>(
1516
cx: &LateContext<'_>,
1617
expr: &'a hir::Expr<'_>,

0 commit comments

Comments
 (0)