mir/borrowck: remove a redundant clone
This commit is contained in:
parent
f53d2b257c
commit
5620f6d244
1 changed files with 1 additions and 3 deletions
|
@ -77,9 +77,7 @@ impl<'cx, 'gcx, 'tcx> MirBorrowckCtxt<'cx, 'gcx, 'tcx> {
|
|||
if move_out_indices.is_empty() {
|
||||
let root_place = self.prefixes(&used_place, PrefixSet::All).last().unwrap();
|
||||
|
||||
if self.uninitialized_error_reported
|
||||
.contains(&root_place.clone())
|
||||
{
|
||||
if self.uninitialized_error_reported.contains(root_place) {
|
||||
debug!(
|
||||
"report_use_of_moved_or_uninitialized place: error about {:?} suppressed",
|
||||
root_place
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue