Skip to content

Commit f05097d

Browse files
committed
Fix new/improved Rust 1.63 clippy lints (#649)
More `clippy::use_self` is found in manual code, and superfluous transmutes in bindgen output are now also found and disallowed.
1 parent 2907241 commit f05097d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ash/src/entry.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,17 +377,17 @@ mod loaded {
377377
impl fmt::Display for LoadingError {
378378
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
379379
match self {
380-
LoadingError::LibraryLoadFailure(err) => fmt::Display::fmt(err, f),
381-
LoadingError::MissingEntryPoint(err) => fmt::Display::fmt(err, f),
380+
Self::LibraryLoadFailure(err) => fmt::Display::fmt(err, f),
381+
Self::MissingEntryPoint(err) => fmt::Display::fmt(err, f),
382382
}
383383
}
384384
}
385385

386386
impl Error for LoadingError {
387387
fn source(&self) -> Option<&(dyn Error + 'static)> {
388388
Some(match self {
389-
LoadingError::LibraryLoadFailure(err) => err,
390-
LoadingError::MissingEntryPoint(err) => err,
389+
Self::LibraryLoadFailure(err) => err,
390+
Self::MissingEntryPoint(err) => err,
391391
})
392392
}
393393
}

ash/src/vk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub use features::*;
2727
mod prelude;
2828
pub use prelude::*;
2929
/// Native bindings from Vulkan headers, generated by bindgen
30-
#[allow(nonstandard_style)]
30+
#[allow(clippy::useless_transmute, nonstandard_style)]
3131
pub mod native;
3232
mod platform_types;
3333
pub use platform_types::*;

0 commit comments

Comments
 (0)