Skip to content

Commit

Permalink
remove .into_iter() for those accepting IntoIter
Browse files Browse the repository at this point in the history
  • Loading branch information
MiSawa committed Jan 15, 2024
1 parent 9ee8cb0 commit b477b1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/lang/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl<'a> From<lalrpop_util::ParseError<lexgen_util::Loc, lexer::Token<'a>, lexer
pub fn parse_program(input: &str) -> ParseResult<ast::Program> {
let lexer = lexer::Lexer::new(input);
parser::ProgramParser::new()
.parse(input, lexer.into_iter())
.parse(input, lexer)
.map_err(|e| e.into())
}

Expand Down
2 changes: 1 addition & 1 deletion src/intrinsic/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ fn replace_tombstone_rec(context: Value, path: &[Value], placeholder: Value) ->
before
.iter()
.cloned()
.chain(make_owned(middle).into_iter())
.chain(make_owned(middle))
.chain(after.iter().cloned())
.collect::<Array>()
.into()
Expand Down

0 comments on commit b477b1d

Please sign in to comment.