Update miri-script/src/main.rs

Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
Kostis Andrikopoulos 2024-12-13 21:21:12 +01:00 committed by Ralf Jung
parent c1657ca1b0
commit d12597ff7b

View file

@ -156,6 +156,8 @@ pub struct Cli {
}
fn main() -> Result<()> {
/// Split the arguments into the part before the `--` and the part after.
/// The `--` itself ends up in the second part.
let miri_args: Vec<_> = std::env::args().take_while(|x| *x != "--").collect();
let remainder: Vec<_> = std::env::args().skip_while(|x| *x != "--").collect();