Windows clippy fixes (#948)

This commit is contained in:
Dominik Maier 2022-12-18 12:35:30 +01:00 committed by GitHub
parent 016a4c3778
commit ccf6cc708a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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)");
}; };

View File

@ -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:?}"))
} }
} }