File tree 3 files changed +4
-8
lines changed
3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ exclude = [
16
16
" **/ion-schema-schemas/isl/**" ,
17
17
" *.pdf"
18
18
]
19
- version = " 0.9.1 "
19
+ version = " 0.10.0 "
20
20
edition = " 2021"
21
21
22
22
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl Nfa {
91
91
self . transitions
92
92
. get ( & state_id)
93
93
. map ( |s| s. to_owned ( ) )
94
- . unwrap_or ( HashSet :: new ( ) )
94
+ . unwrap_or_default ( )
95
95
}
96
96
}
97
97
@@ -329,11 +329,7 @@ impl NfaBuilder {
329
329
min : usize ,
330
330
max : usize ,
331
331
) {
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 ( ) ;
337
333
338
334
end_states. insert ( Transition {
339
335
destination : end_id,
Original file line number Diff line number Diff line change @@ -1052,7 +1052,7 @@ impl Resolver {
1052
1052
self . resolved_schema_cache
1053
1053
. insert ( isl. id ( ) , Arc :: clone ( & schema) ) ;
1054
1054
}
1055
- Some ( isl_import ) if matches ! ( isl_import , IslImport :: Schema ( _) ) => {
1055
+ Some ( IslImport :: Schema ( _) ) => {
1056
1056
self . resolved_schema_cache
1057
1057
. insert ( isl. id ( ) , Arc :: clone ( & schema) ) ;
1058
1058
}
You can’t perform that action at this time.
0 commit comments