Skip to content

Commit e09c1ec

Browse files
Replace 'unwrap_or' with 'unwrap_or_else'
1 parent e41e34e commit e09c1ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/srv/desktop/rdp/rdpclient/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1406,7 +1406,7 @@ fn create_config(params: &ConnectParams, pin: String, cgo_handle: CgoHandle) ->
14061406
color_depth: 32,
14071407
// Try to congiure the client to use remotefx only. This should never fail in practice, but just in
14081408
// case we'll log an error and fall back to defaults.
1409-
codecs: client_codecs_capabilities(&["remotefx"]).unwrap_or({
1409+
codecs: client_codecs_capabilities(&["remotefx"]).unwrap_or_else(|_| {
14101410
error!("Failed to configure client for remotefx");
14111411
BitmapCodecs::default()
14121412
}),

0 commit comments

Comments
 (0)