Skip to content

Commit a90aea5

Browse files
authored
fix(qihe): satisfy clippy for manifest args (#115)
2 parents 62a57d0 + 4eb7588 commit a90aea5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/global_state/qihe.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,11 @@ fn prepare_qihe_compile_command(
420420
}
421421
command.args(&compile_input.files).arg("-o").arg(ir_path);
422422

423-
let manifest_slang_args = auto_configure_manifest_args
424-
.then_some(compile_input.manifest_slang_args.as_slice())
425-
.unwrap_or(&[]);
423+
let manifest_slang_args = if auto_configure_manifest_args {
424+
compile_input.manifest_slang_args.as_slice()
425+
} else {
426+
&[]
427+
};
426428
let has_slang_args = !user_slang_args.is_empty() || !manifest_slang_args.is_empty();
427429
if has_slang_args {
428430
command.arg("--").args(&user_slang_args).args(manifest_slang_args);

0 commit comments

Comments
 (0)