Skip to content

Commit

Permalink
cargo fmt fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt committed Oct 7, 2024
1 parent d7ca61d commit 0aaa5bd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions ion-schema/src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -734,11 +734,8 @@ impl Resolver {

// get all isl type names from given isl types
// this will be used to resolve type references which might not have yet resolved while loading a type definition
let isl_type_names: HashSet<&str> = HashSet::from_iter(
isl_types
.iter()
.filter_map(|t| t.name())
);
let isl_type_names: HashSet<&str> =
HashSet::from_iter(isl_types.iter().filter_map(|t| t.name()));

for isl_type in &isl_types {
// convert [IslType] into [TypeDefinitionKind]
Expand Down Expand Up @@ -1010,9 +1007,8 @@ impl Resolver {

// get all isl type names that are defined within the schema
// this will be used to resolve type references which might not have yet resolved while loading a type definition
let isl_type_names: HashSet<&str> = HashSet::from_iter(
isl.types().filter_map(|t| t.name())
);
let isl_type_names: HashSet<&str> =
HashSet::from_iter(isl.types().filter_map(|t| t.name()));

// Resolve all ISL types and constraints
for isl_type in isl_types {
Expand Down

0 comments on commit 0aaa5bd

Please sign in to comment.