From 7dcaed414616bb618dda58adefd311a8b58cdc1f Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Mon, 25 Mar 2024 08:29:16 -0500 Subject: [PATCH] nightly --- crates/libs/bindgen/src/rdl/mod.rs | 2 ++ crates/libs/bindgen/src/rust/cfg.rs | 3 +-- crates/libs/bindgen/src/winmd/writer/tables.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/libs/bindgen/src/rdl/mod.rs b/crates/libs/bindgen/src/rdl/mod.rs index c74c8c04f0..da0add924c 100644 --- a/crates/libs/bindgen/src/rdl/mod.rs +++ b/crates/libs/bindgen/src/rdl/mod.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use super::*; mod fmt; mod from_reader; diff --git a/crates/libs/bindgen/src/rust/cfg.rs b/crates/libs/bindgen/src/rust/cfg.rs index 283953edd8..0f5061351a 100644 --- a/crates/libs/bindgen/src/rust/cfg.rs +++ b/crates/libs/bindgen/src/rust/cfg.rs @@ -6,7 +6,6 @@ pub struct Cfg { pub types: std::collections::BTreeMap<&'static str, std::collections::BTreeSet>, pub core_types: std::collections::BTreeSet, pub arches: std::collections::BTreeSet<&'static str>, - pub implement: bool, } impl Cfg { @@ -47,7 +46,7 @@ pub fn type_def_cfg(writer: &Writer, row: metadata::TypeDef, generics: &[metadat cfg } pub fn type_def_cfg_impl(writer: &Writer, def: metadata::TypeDef, generics: &[metadata::Type]) -> Cfg { - let mut cfg = Cfg { implement: true, ..Default::default() }; + let mut cfg = Cfg::default(); fn combine(writer: &Writer, def: metadata::TypeDef, generics: &[metadata::Type], cfg: &mut Cfg) { type_def_cfg_combine(writer, def, generics, cfg); diff --git a/crates/libs/bindgen/src/winmd/writer/tables.rs b/crates/libs/bindgen/src/winmd/writer/tables.rs index 50009acd7a..1c4d60b455 100644 --- a/crates/libs/bindgen/src/winmd/writer/tables.rs +++ b/crates/libs/bindgen/src/winmd/writer/tables.rs @@ -1,4 +1,4 @@ -#![allow(non_snake_case)] +#![allow(dead_code, non_snake_case)] use super::*;