diff options
author | Maan2003 <[email protected]> | 2021-06-13 04:59:36 +0100 |
---|---|---|
committer | Maan2003 <[email protected]> | 2021-06-13 04:59:36 +0100 |
commit | 75370312fbfe072947ffdc568eebc9cb4c6108e4 (patch) | |
tree | cb435a1c147db6891c7f6cf625efd8876f427788 /crates/hir_def | |
parent | 705f7e6e2644bf5de4255bc05ea8d9d5027c29b0 (diff) |
clippy::redundant_closure
Diffstat (limited to 'crates/hir_def')
-rw-r--r-- | crates/hir_def/src/attr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/attr.rs b/crates/hir_def/src/attr.rs index 2b21cf927..d07adb084 100644 --- a/crates/hir_def/src/attr.rs +++ b/crates/hir_def/src/attr.rs | |||
@@ -583,13 +583,13 @@ impl AttrSourceMap { | |||
583 | .get(id.ast_index as usize) | 583 | .get(id.ast_index as usize) |
584 | .unwrap_or_else(|| panic!("cannot find doc comment at index {:?}", id)) | 584 | .unwrap_or_else(|| panic!("cannot find doc comment at index {:?}", id)) |
585 | .clone() | 585 | .clone() |
586 | .map(|attr| Either::Right(attr)) | 586 | .map(Either::Right) |
587 | } else { | 587 | } else { |
588 | self.attrs | 588 | self.attrs |
589 | .get(id.ast_index as usize) | 589 | .get(id.ast_index as usize) |
590 | .unwrap_or_else(|| panic!("cannot find `Attr` at index {:?}", id)) | 590 | .unwrap_or_else(|| panic!("cannot find `Attr` at index {:?}", id)) |
591 | .clone() | 591 | .clone() |
592 | .map(|attr| Either::Left(attr)) | 592 | .map(Either::Left) |
593 | } | 593 | } |
594 | } | 594 | } |
595 | } | 595 | } |