Skip to content

Commit

Permalink
clippy was wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Feb 9, 2025
1 parent bee63dc commit 6ef9dfc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ macro_rules! take_arg {
ArgInfo::TakeArg(
$s,
|arg: OsString| $vtype::process(arg).map($variant),
ArgDisposition::$d(Some(b'=')),
ArgDisposition::$d(Some($x as u8)),
)
};
}
Expand Down Expand Up @@ -700,7 +700,7 @@ mod tests {
Argument::$name($x, $v($y.into()), ArgDisposition::$d(None))
};
($name:ident($x:expr, $v:ident($y:expr), $d:ident($z:expr))) => {
Argument::$name($x, $v($y.into()), ArgDisposition::$d(Some(b'=')))
Argument::$name($x, $v($y.into()), ArgDisposition::$d(Some($z as u8)))
};

($name:ident($x:expr, $v:ident::$w:ident)) => {
Expand All @@ -716,7 +716,7 @@ mod tests {
Argument::$name($x, $v::$w($y.into()), ArgDisposition::$d(None))
};
($name:ident($x:expr, $v:ident::$w:ident($y:expr), $d:ident($z:expr))) => {
Argument::$name($x, $v::$w($y.into()), ArgDisposition::$d(Some(b'=')))
Argument::$name($x, $v::$w($y.into()), ArgDisposition::$d(Some($z as u8)))
};
}

Expand Down

0 comments on commit 6ef9dfc

Please sign in to comment.