chore: enable try_err clippy lint (#1004)

This commit is contained in:
Alex Yusiuk 2025-10-02 11:34:02 +03:00 committed by GitHub
parent 49a0a9e6d2
commit bbc38db750
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -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 == #

View file

@ -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
//