Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Oct 7, 2023
1 parent 8699af4 commit d412da7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
7 changes: 3 additions & 4 deletions crates/compiler/gen_llvm/src/llvm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1886,10 +1886,9 @@ fn build_tag<'a, 'ctx>(
&[fields],
);

let struct_type = env.context.struct_type(
env.arena.alloc_slice_fill_iter(field_types),
false,
);
let struct_type = env
.context
.struct_type(env.arena.alloc_slice_fill_iter(field_types), false);

struct_pointer_from_fields(
env,
Expand Down
5 changes: 1 addition & 4 deletions crates/compiler/load_internal/src/work.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,7 @@ impl<'a> Dependencies<'a> {
None | Some(Status::NotStarted) | Some(Status::Pending) => {
// this shorthand is not resolved, add a dependency
{
let entry = self
.waiting_for
.entry(next_step.clone())
.or_default();
let entry = self.waiting_for.entry(next_step.clone()).or_default();

entry.insert(job.clone());
}
Expand Down
5 changes: 1 addition & 4 deletions crates/compiler/types/src/subs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3323,10 +3323,7 @@ impl RecordFields {
let range2 = helper(self.variables_start);
let range3 = helper(self.field_types_start);

let it = range1
.into_iter()
.zip(range2)
.zip(range3);
let it = range1.into_iter().zip(range2).zip(range3);

it.map(|((i1, i2), i3)| (SubsIndex::new(i1), SubsIndex::new(i2), SubsIndex::new(i3)))
}
Expand Down

0 comments on commit d412da7

Please sign in to comment.