all: address clippy lints
This commit is contained in:
parent
544f23ffb0
commit
84e6b74893
3 changed files with 3 additions and 6 deletions
|
|
@ -813,7 +813,7 @@ struct Extension {
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
enum NamedType {
|
enum NamedType {
|
||||||
Struct(Rc<Struct>),
|
Struct(Rc<Struct>),
|
||||||
Bitmask(Rc<Bitmask>),
|
Bitmask(#[allow(dead_code)] Rc<Bitmask>),
|
||||||
Enum(Rc<Enum>),
|
Enum(Rc<Enum>),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -146,8 +146,7 @@ impl Drop for VulkanInstance {
|
||||||
|
|
||||||
const REQUIRED_INSTANCE_EXTENSIONS: &[&CStr] = &[ExtDebugUtilsFn::name()];
|
const REQUIRED_INSTANCE_EXTENSIONS: &[&CStr] = &[ExtDebugUtilsFn::name()];
|
||||||
|
|
||||||
const VALIDATION_LAYER: &CStr =
|
const VALIDATION_LAYER: &CStr = c"VK_LAYER_KHRONOS_validation";
|
||||||
unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_LAYER_KHRONOS_validation\0") };
|
|
||||||
|
|
||||||
pub type Extensions = AHashMap<CString, u32>;
|
pub type Extensions = AHashMap<CString, u32>;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -96,9 +96,7 @@ impl<'a> Lexer<'a> {
|
||||||
|
|
||||||
self.skip_ws();
|
self.skip_ws();
|
||||||
|
|
||||||
let Some(c) = get!(0) else {
|
let c = get!(0)?;
|
||||||
return None;
|
|
||||||
};
|
|
||||||
let pos = self.pos;
|
let pos = self.pos;
|
||||||
|
|
||||||
macro_rules! span {
|
macro_rules! span {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue