1
0
Fork 0
forked from wry/wry

all: address clippy lints

This commit is contained in:
Julian Orth 2024-03-23 00:39:15 +01:00
parent 544f23ffb0
commit 84e6b74893
3 changed files with 3 additions and 6 deletions

View file

@ -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>),
}

View file

@ -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>;

View file

@ -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 {