Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ range_plus_one = "warn"
# TODO: self_named_module_files = "warn"
# TODO: partial_pub_fields = "warn" (should we enable only in pdu crates?)
redundant_type_annotations = "warn"
try_err = "warn"
rest_pat_in_fully_bound_structs = "warn"

# == Compile-time / optimization == #
Expand Down
4 changes: 2 additions & 2 deletions crates/ironrdp-cliprdr-native/src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl WinClipboard {
// SAFETY: low-level WinAPI call
let atom = unsafe { RegisterClassA(&wc) };
if atom == 0 {
return Err(Error::from_win32())?;
return Err(WinCliprdrError::from(Error::from_win32()));
}

// SAFETY: low-level WinAPI call
Expand All @@ -184,7 +184,7 @@ impl WinClipboard {
};

if window.is_invalid() {
return Err(Error::from_win32())?;
return Err(WinCliprdrError::from(Error::from_win32()));
}
// Init clipboard processing for WinAPI event loop
//
Expand Down
Loading