Skip to content

Commit 41a3455

Browse files
committed
Rename ClearCrossCrate::assert_crate_local.
As `unwrap_crate_local`, because it follows exactly the standard form of an `unwrap` function.
1 parent 835e6a6 commit 41a3455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/redundant_clone.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl<'tcx> LateLintPass<'tcx> for RedundantClone {
205205
let node = mir.source_scopes[scope]
206206
.local_data
207207
.as_ref()
208-
.assert_crate_local()
208+
.unwrap_crate_local()
209209
.lint_root;
210210

211211
if let Some(snip) = span.get_source_text(cx)

0 commit comments

Comments
 (0)