File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -248,6 +248,7 @@ impl NyroConfig {
248248 Ok ( ( ) )
249249 }
250250
251+ #[ allow( dead_code) ]
251252 pub fn get_model_schema ( & self , model_name : & str ) -> Option < & ModelSchema > {
252253 self . models . get ( model_name)
253254 }
Original file line number Diff line number Diff line change @@ -158,11 +158,8 @@ impl LogStorage {
158158 } else {
159159 value. to_string ( )
160160 } ;
161- let field_idx = self
162- . secondary_indices
163- . entry ( field. clone ( ) )
164- . or_insert_with ( DashMap :: new) ;
165- field_idx. entry ( value_str) . or_insert_with ( Vec :: new) . push ( id) ;
161+ let field_idx = self . secondary_indices . entry ( field. clone ( ) ) . or_default ( ) ;
162+ field_idx. entry ( value_str) . or_default ( ) . push ( id) ;
166163 }
167164 }
168165 }
@@ -260,11 +257,9 @@ impl LogStorage {
260257 } else {
261258 value. to_string ( )
262259 } ;
263- let field_idx = self
264- . secondary_indices
265- . entry ( field. clone ( ) )
266- . or_insert_with ( DashMap :: new) ;
267- field_idx. entry ( value_str) . or_insert_with ( Vec :: new) . push ( id) ;
260+ let field_idx =
261+ self . secondary_indices . entry ( field. clone ( ) ) . or_default ( ) ;
262+ field_idx. entry ( value_str) . or_default ( ) . push ( id) ;
268263 }
269264 }
270265 }
You can’t perform that action at this time.
0 commit comments