mirror of
https://github.com/Devolutions/IronRDP.git
synced 2025-12-23 12:26:46 +00:00
chore: enable try_err clippy lint (#1004)
This commit is contained in:
parent
49a0a9e6d2
commit
bbc38db750
2 changed files with 3 additions and 2 deletions
|
|
@ -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 == #
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue