Skip to content
Snippets Groups Projects
Verified Commit 654eec6e authored by Vincent Lafeychine's avatar Vincent Lafeychine
Browse files

clippy: Fix into_iter_on_ref

parent a6cbeb0d
No related branches found
No related tags found
1 merge request!42Fix most of clippy::style
......@@ -80,7 +80,6 @@ rustflags = [
"-Aclippy::unwrap_in_result",
# clippy::style
"-Aclippy::into_iter_on_ref",
"-Aclippy::len_zero",
"-Aclippy::let_and_return",
"-Aclippy::manual_map",
......
......@@ -1977,7 +1977,7 @@ impl<'a, 'def: 'a, 'tcx: 'def> BodyTranslator<'a, 'def, 'tcx> {
let mut cont_stmt = self.translate_goto_like(&loc, target)?;
// end loans before the goto, but after the call.
// TODO: may cause duplications?
cont_stmt = self.prepend_endlfts(cont_stmt, dying_loans.into_iter().cloned());
cont_stmt = self.prepend_endlfts(cont_stmt, dying_loans.iter().cloned());
// Get the type of the return value from the function
let (_, _, _, inst_sig) = self.call_expr_op_split_inst(func)?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment