Skip to content

Commit

Permalink
chore: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLucqs committed Oct 1, 2024
1 parent 98fb56b commit 0a6a2dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions crates/cairo-lang-lowering/src/lower/lower_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ pub(crate) fn lower_concrete_enum_match(
)?;
let mut arm_var_ids = vec![];
let mut block_ids = vec![];
let varinats_block_builders = concrete_variants
let variants_block_builders = concrete_variants
.iter()
.map(|concrete_variant| {
let PatternPath { arm_index, pattern_index } = variant_map
Expand Down Expand Up @@ -836,7 +836,7 @@ pub(crate) fn lower_concrete_enum_match(
empty_match_info,
location,
arms,
varinats_block_builders,
variants_block_builders,
match_type,
)?;

Expand Down Expand Up @@ -887,7 +887,7 @@ pub(crate) fn lower_optimized_extern_match(
let mut arm_var_ids = vec![];
let mut block_ids = vec![];

let varinats_block_builders = concrete_variants
let variants_block_builders = concrete_variants
.iter()
.map(|concrete_variant| {
let mut subscope = create_subscope(ctx, builder);
Expand Down Expand Up @@ -969,7 +969,7 @@ pub(crate) fn lower_optimized_extern_match(
empty_match_info,
location,
match_arms,
varinats_block_builders,
variants_block_builders,
match_type,
)?;
let match_info = MatchInfo::Extern(MatchExternInfo {
Expand Down Expand Up @@ -1000,10 +1000,10 @@ fn group_match_arms(
empty_match_info: MatchInfo,
location: LocationId,
arms: &[MatchArmWrapper],
varinats_block_builders: Vec<MatchLeafBuilder>,
variants_block_builders: Vec<MatchLeafBuilder>,
kind: MatchKind,
) -> LoweringResult<Vec<SealedBlockBuilder>> {
varinats_block_builders
variants_block_builders
.into_iter()
.sorted_by_key(|MatchLeafBuilder { arm_index, .. }| *arm_index)
.group_by(|MatchLeafBuilder { arm_index, .. }| *arm_index)
Expand Down
4 changes: 2 additions & 2 deletions crates/cairo-lang-plugins/src/test_data/derive
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ struct UnsupportedTrait {}
struct NonSimplePath {}

#[derive(Clone)]
extern type NotClonable;
extern type NotCloneable;

#[derive(Default)]
enum NoDefaultValue {
Expand Down Expand Up @@ -442,7 +442,7 @@ struct UnsupportedTrait {}
struct NonSimplePath {}

#[derive(Clone)]
extern type NotClonable;
extern type NotCloneable;

#[derive(Default)]
enum NoDefaultValue {
Expand Down

0 comments on commit 0a6a2dd

Please sign in to comment.