Skip to content

Commit

Permalink
fix: clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalSin9h committed Aug 8, 2024
1 parent 431732b commit 2decd5d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ pub enum OptArgs {

fn compile_opts_from_cli(args: &Vec<OptArgs>, compiler_target: CompilerTarget) -> CompileOpts {
use OptArgs::*;
let mut opts = CompileOpts::default();
opts.target_architecture = compiler_target;
let mut opts = CompileOpts { target_architecture: compiler_target, ..CompileOpts::default() };

for arg in args {
match arg {
Expand Down

0 comments on commit 2decd5d

Please sign in to comment.