File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,16 @@ fn show_usage() {
1313
1414pub 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, clippy:: while_let_on_iterator) ]
1619 while let Some ( arg) = args. next ( ) {
1720 match arg. as_str ( ) {
1821 "--help" => {
1922 show_usage ( ) ;
2023 return Ok ( ( ) ) ;
2124 }
22- _ => return Err ( format ! ( "Unknown option {}" , arg ) ) ,
25+ _ => return Err ( format ! ( "Unknown option {arg:?}" ) ) ,
2326 }
2427 }
2528 // Ensure that we have a cloned version of abi-cafe on hand.
@@ -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}
You can’t perform that action at this time.
0 commit comments