File tree Expand file tree Collapse file tree
crates/code_assistant/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1609,8 +1609,10 @@ mod tests {
16091609 . save_chat_session ( & persisted)
16101610 . expect ( "save switched session" ) ;
16111611
1612- let mut captured_config = SessionConfig :: default ( ) ;
1613- captured_config. use_diff_blocks = false ;
1612+ let captured_config = SessionConfig {
1613+ use_diff_blocks : false ,
1614+ ..Default :: default ( )
1615+ } ;
16141616 let mut captured_state = SessionState :: from_messages (
16151617 session_id. clone ( ) ,
16161618 "test" . to_string ( ) ,
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ impl ModelSelector {
161161 . filter ( |( model_name, _) | {
162162 allowed_models
163163 . as_ref ( )
164- . map_or ( true , |allowed| allowed. contains ( * model_name) )
164+ . is_none_or ( |allowed| allowed. contains ( * model_name) )
165165 } )
166166 . filter_map ( |( model_name, model_config) | {
167167 let provider_config = config. providers . get ( & model_config. provider ) ?;
You can’t perform that action at this time.
0 commit comments