Skip to content

Commit 34eec9e

Browse files
authored
Bumps version to 0.10.0 (#203)
1 parent bf8456e commit 34eec9e

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

ion-schema/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ exclude = [
1616
"**/ion-schema-schemas/isl/**",
1717
"*.pdf"
1818
]
19-
version = "0.9.1"
19+
version = "0.10.0"
2020
edition = "2021"
2121

2222
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

ion-schema/src/nfa.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl Nfa {
9191
self.transitions
9292
.get(&state_id)
9393
.map(|s| s.to_owned())
94-
.unwrap_or(HashSet::new())
94+
.unwrap_or_default()
9595
}
9696
}
9797

@@ -329,11 +329,7 @@ impl NfaBuilder {
329329
min: usize,
330330
max: usize,
331331
) {
332-
let end_states = self
333-
.nfa
334-
.transitions
335-
.entry(start_id)
336-
.or_insert_with(HashSet::new);
332+
let end_states = self.nfa.transitions.entry(start_id).or_default();
337333

338334
end_states.insert(Transition {
339335
destination: end_id,

ion-schema/src/system.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ impl Resolver {
10521052
self.resolved_schema_cache
10531053
.insert(isl.id(), Arc::clone(&schema));
10541054
}
1055-
Some(isl_import) if matches!(isl_import, IslImport::Schema(_)) => {
1055+
Some(IslImport::Schema(_)) => {
10561056
self.resolved_schema_cache
10571057
.insert(isl.id(), Arc::clone(&schema));
10581058
}

0 commit comments

Comments
 (0)