Fix Rust 1.75 clippy lints (#859)
Rust 1.75 has once again gotten a bit more complete/strict when linting code. `.get(0)` is now recommended to be replaced with `.first()`, and needless glob reexports are equally denied (the modules in question either contain macros which are already reexported via `#[macro_export]`, or contain `impl` blocks exclusively which cannot be referred to as item paths either).
This commit is contained in:
parent
e7dab7cb66
commit
51080bd522
|
@ -5,7 +5,6 @@
|
||||||
)]
|
)]
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
mod macros;
|
mod macros;
|
||||||
pub use macros::*;
|
|
||||||
mod aliases;
|
mod aliases;
|
||||||
pub use aliases::*;
|
pub use aliases::*;
|
||||||
mod bitflags;
|
mod bitflags;
|
||||||
|
@ -21,7 +20,6 @@ pub use enums::*;
|
||||||
mod extensions;
|
mod extensions;
|
||||||
pub use extensions::*;
|
pub use extensions::*;
|
||||||
mod feature_extensions;
|
mod feature_extensions;
|
||||||
pub use feature_extensions::*;
|
|
||||||
mod features;
|
mod features;
|
||||||
pub use features::*;
|
pub use features::*;
|
||||||
mod prelude;
|
mod prelude;
|
||||||
|
|
|
@ -566,7 +566,7 @@ pub trait CommandExt {
|
||||||
|
|
||||||
impl CommandExt for vk_parse::CommandDefinition {
|
impl CommandExt for vk_parse::CommandDefinition {
|
||||||
fn function_type(&self) -> FunctionType {
|
fn function_type(&self) -> FunctionType {
|
||||||
let is_first_param_device = self.params.get(0).map_or(false, |field| {
|
let is_first_param_device = self.params.first().map_or(false, |field| {
|
||||||
matches!(
|
matches!(
|
||||||
field.definition.type_name.as_deref(),
|
field.definition.type_name.as_deref(),
|
||||||
Some("VkDevice" | "VkCommandBuffer" | "VkQueue")
|
Some("VkDevice" | "VkCommandBuffer" | "VkQueue")
|
||||||
|
|
Loading…
Reference in a new issue