Skip to content

Commit 089a894

Browse files
committed
Merge branch 'bugfix/issue_66295' of github.com:weiznich/rust into bugfix/issue_66295
2 parents 9598cf4 + cc4ced8 commit 089a894

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/librustc_lint/unused.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,7 @@ impl UnusedParens {
357357
if !Self::is_expr_parens_necessary(inner, followed_by_block) &&
358358
value.attrs.is_empty() &&
359359
!MultiSpan::from(value.span).primary_span()
360-
.map(|span| span.from_expansion())
361-
.unwrap_or(false)
360+
.map_or(false, |span| span.from_expansion())
362361
{
363362
let expr_text = if let Ok(snippet) = cx.sess().source_map()
364363
.span_to_snippet(value.span) {

0 commit comments

Comments
 (0)