Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rtfeldman committed Jul 29, 2023
1 parent 1ffadb7 commit 9c9a788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/compiler/can/src/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ pub fn desugar_expr<'a>(arena: &'a Bump, loc_expr: &'a Loc<Expr<'a>>) -> &'a Loc
let region = loc_expr.region;
let new_lines = Vec::from_iter_in(
lines
.into_iter()
.iter()
.map(|segments| desugar_str_segments(arena, segments)),
arena,
);
Expand Down Expand Up @@ -472,7 +472,7 @@ fn desugar_str_segments<'a>(
segments: &'a [StrSegment<'a>],
) -> &'a [StrSegment<'a>] {
Vec::from_iter_in(
segments.into_iter().map(|segment| match segment {
segments.iter().map(|segment| match segment {
StrSegment::Plaintext(_) | StrSegment::Unicode(_) | StrSegment::EscapedChar(_) => {
*segment
}
Expand Down

0 comments on commit 9c9a788

Please sign in to comment.