From 383181afda68f79aebc6d82a0a564157c5100787 Mon Sep 17 00:00:00 2001 From: Langston Barrett Date: Wed, 5 Jun 2024 15:04:27 -0400 Subject: [PATCH] Appease rustc --- rustc-flags | 2 +- src/cli.rs | 2 +- src/main.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rustc-flags b/rustc-flags index 9584fb3..ca818da 100644 --- a/rustc-flags +++ b/rustc-flags @@ -1,4 +1,5 @@ --deny=absolute_paths_not_starting_with_crate +--deny=dead_code --deny=elided_lifetimes_in_paths --deny=explicit_outlives_requirements --deny=keyword_idents @@ -24,6 +25,5 @@ --deny=unused_lifetimes --deny=unused_macro_rules --deny=unused_qualifications ---deny=unused_tuple_struct_fields --deny=variant_size_differences --deny=warnings diff --git a/src/cli.rs b/src/cli.rs index 1188ea7..9a76d7f 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -9,7 +9,7 @@ pub enum Check { Strict, } -impl std::fmt::Display for Check { +impl fmt::Display for Check { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { Check::Default => write!(f, "default"), diff --git a/src/main.rs b/src/main.rs index 6b59cb0..c464985 100644 --- a/src/main.rs +++ b/src/main.rs @@ -70,7 +70,7 @@ fn main() -> Result<()> { args.module.display() ) })?; - let mut operands: HashMap, &llvm_ir::Operand> = + let mut operands: HashMap, &llvm_ir::Operand> = // just a guess: HashMap::with_capacity(llvm_module.global_vars.len() + (8 * llvm_module.functions.len())); let module = llvm::Module::new(&llvm_module, &mut operands).context("Malformed LLVM module")?;