Advertisement
Guest User

Untitled

a guest
Jan 8th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.23 KB | None | 0 0
  1.         match rng.choose(&Vec::from_iter(modules_to_run.iter().map(String::as_str))).unwrap() {
  2.             &"bootlog" => bootlog::run(),
  3.             &"cargo" => cargo::run(),
  4.             _ => panic!("Unknown module!"),
  5.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement