Windows clippy fixes (#948)
This commit is contained in:
parent
016a4c3778
commit
ccf6cc708a
@ -1305,7 +1305,7 @@ mod windows_exception_handler {
|
|||||||
.0,
|
.0,
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
eprintln!("Crashed with {}", code);
|
eprintln!("Crashed with {code}");
|
||||||
} else {
|
} else {
|
||||||
eprintln!("Crashed without exception (probably due to SIGABRT)");
|
eprintln!("Crashed without exception (probably due to SIGABRT)");
|
||||||
};
|
};
|
||||||
|
@ -404,7 +404,7 @@ impl From<TryFromSliceError> for Error {
|
|||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
impl From<windows::core::Error> for Error {
|
impl From<windows::core::Error> for Error {
|
||||||
fn from(err: windows::core::Error) -> Self {
|
fn from(err: windows::core::Error) -> Self {
|
||||||
Self::unknown(format!("Windows API error: {:?}", err))
|
Self::unknown(format!("Windows API error: {err:?}"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user