Skip to content

Commit

Permalink
🥢 Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Philogy committed Nov 6, 2024
1 parent e3b33f4 commit 97b9959
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion crates/cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use ariadne::{sources, Color, Config, Fmt, IndexType, Label, Report, ReportKind};
use clap::Parser as ClapParser;
use evm_glue::{assemble_maximized, assemble_minimized, utils::MarkTracker};
use huff_analysis::*;
use huff_ast::{parse, RootSection};
use huff_compilation::{generate_default_constructor, generate_for_entrypoint, CompileGlobals};
Expand Down
14 changes: 5 additions & 9 deletions crates/compilation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ fn generate_for_macro<'src: 'cmp, 'cmp>(
};
generate_for_macro(
globals,
&target,
target,
args.0
.iter()
.map(|arg| instruction_to_asm(globals, &current_args, label_stack, arg))
Expand All @@ -152,10 +152,8 @@ fn generate_for_macro<'src: 'cmp, 'cmp>(
)
}
Invoke::BuiltinCodeSize(code_ref) => {
let mref: MarkRef = if let Some(included) = included_macros
.iter()
.filter(|m| m.name == code_ref.ident())
.next()
let mref: MarkRef = if let Some(included) =
included_macros.iter().find(|m| m.name == code_ref.ident())
{
included.size_ref()
} else {
Expand All @@ -173,10 +171,8 @@ fn generate_for_macro<'src: 'cmp, 'cmp>(
asm.push(Asm::Ref(mref));
}
Invoke::BuiltinCodeOffset(code_ref) => {
let mref: MarkRef = if let Some(included) = included_macros
.iter()
.filter(|m| m.name == code_ref.ident())
.next()
let mref: MarkRef = if let Some(included) =
included_macros.iter().find(|m| m.name == code_ref.ident())
{
included.start_ref()
} else {
Expand Down

0 comments on commit 97b9959

Please sign in to comment.