File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1094,14 +1094,11 @@ pub async fn open_named_connection(
10941094 let ( shard_info, supported_compression, shard_aware_port) = match options_result {
10951095 Response :: Supported ( mut supported) => {
10961096 let shard_info = ShardInfo :: try_from ( & supported. options ) . ok ( ) ;
1097- let supported_compression = supported
1098- . options
1099- . remove ( "COMPRESSION" )
1100- . unwrap_or_else ( Vec :: new) ;
1097+ let supported_compression = supported. options . remove ( "COMPRESSION" ) . unwrap_or_default ( ) ;
11011098 let shard_aware_port = supported
11021099 . options
11031100 . remove ( shard_aware_port_key)
1104- . unwrap_or_else ( Vec :: new )
1101+ . unwrap_or_default ( )
11051102 . into_iter ( )
11061103 . next ( )
11071104 . and_then ( |p| p. parse :: < u16 > ( ) . ok ( ) ) ;
Original file line number Diff line number Diff line change @@ -1053,6 +1053,7 @@ impl Session {
10531053 None => & self . retry_policy ,
10541054 } ;
10551055
1056+ #[ allow( clippy:: unnecessary_lazy_evaluations) ]
10561057 let speculative_policy = statement_config
10571058 . speculative_execution_policy
10581059 . as_ref ( )
You can’t perform that action at this time.
0 commit comments