Skip to content

Commit e2c570c

Browse files
committed
Fixed some clippy warnings.
1 parent ed441b6 commit e2c570c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build_system/src/abi_test.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ fn show_usage() {
1313

1414
pub fn run() -> Result<(), String> {
1515
let mut args = std::env::args().skip(2);
16+
// FractalFir: In the future, I'd like to add some more subcommands / options.
17+
// So, this loop ought to stay for that purpose. It should also stay as a while loop(to parse args)
18+
#[allow(clippy::never_loop, while_let_on_iterator)]
1619
while let Some(arg) = args.next() {
1720
match arg.as_str() {
1821
"--help" => {
@@ -56,7 +59,7 @@ pub fn run() -> Result<(), String> {
5659
&"c_calls_cg_gcc",
5760
];
5861
// Run ABI cafe.
59-
run_command_with_output(cmd, Some(&Path::new("clones/abi-cafe")))?;
62+
run_command_with_output(cmd, Some(Path::new("clones/abi-cafe")))?;
6063

6164
Ok(())
6265
}

0 commit comments

Comments
 (0)