File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
crates/ironrdp-cliprdr-native/src Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ range_plus_one = "warn"
142142# TODO: self_named_module_files = "warn"
143143# TODO: partial_pub_fields = "warn" (should we enable only in pdu crates?)
144144redundant_type_annotations = " warn"
145+ try_err = " warn"
145146rest_pat_in_fully_bound_structs = " warn"
146147
147148# == Compile-time / optimization == #
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ impl WinClipboard {
162162 // SAFETY: low-level WinAPI call
163163 let atom = unsafe { RegisterClassA ( & wc) } ;
164164 if atom == 0 {
165- return Err ( Error :: from_win32 ( ) ) ? ;
165+ return Err ( WinCliprdrError :: from ( Error :: from_win32 ( ) ) ) ;
166166 }
167167
168168 // SAFETY: low-level WinAPI call
@@ -184,7 +184,7 @@ impl WinClipboard {
184184 } ;
185185
186186 if window. is_invalid ( ) {
187- return Err ( Error :: from_win32 ( ) ) ? ;
187+ return Err ( WinCliprdrError :: from ( Error :: from_win32 ( ) ) ) ;
188188 }
189189 // Init clipboard processing for WinAPI event loop
190190 //
You can’t perform that action at this time.
0 commit comments