Skip to content

Commit

Permalink
Appease rustc
Browse files Browse the repository at this point in the history
  • Loading branch information
langston-barrett committed Jun 5, 2024
1 parent 2277a76 commit 383181a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rustc-flags
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fn main() -> Result<()> {
args.module.display()
)
})?;
let mut operands: HashMap<crate::arc::Arc<llvm::Operand>, &llvm_ir::Operand> =
let mut operands: HashMap<arc::Arc<llvm::Operand>, &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")?;
Expand Down

0 comments on commit 383181a

Please sign in to comment.