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)]
|
||||
enum NamedType {
|
||||
Struct(Rc<Struct>),
|
||||
Bitmask(Rc<Bitmask>),
|
||||
Bitmask(#[allow(dead_code)] Rc<Bitmask>),
|
||||
Enum(Rc<Enum>),
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -146,8 +146,7 @@ impl Drop for VulkanInstance {
|
|||
|
||||
const REQUIRED_INSTANCE_EXTENSIONS: &[&CStr] = &[ExtDebugUtilsFn::name()];
|
||||
|
||||
const VALIDATION_LAYER: &CStr =
|
||||
unsafe { CStr::from_bytes_with_nul_unchecked(b"VK_LAYER_KHRONOS_validation\0") };
|
||||
const VALIDATION_LAYER: &CStr = c"VK_LAYER_KHRONOS_validation";
|
||||
|
||||
pub type Extensions = AHashMap<CString, u32>;
|
||||
|
||||
|
|
|
|||
|
|
@ -96,9 +96,7 @@ impl<'a> Lexer<'a> {
|
|||
|
||||
self.skip_ws();
|
||||
|
||||
let Some(c) = get!(0) else {
|
||||
return None;
|
||||
};
|
||||
let c = get!(0)?;
|
||||
let pos = self.pos;
|
||||
|
||||
macro_rules! span {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue