Don't use deprecated Arg::value_of_t

This commit is contained in:
Richard Feldman 2022-07-24 10:04:36 -04:00
parent e707084541
commit 20275f480b
No known key found for this signature in database
GPG Key ID: 7E4127D1E4241798

View File

@ -65,7 +65,7 @@ fn main() -> io::Result<()> {
}
}
Some((CMD_BUILD, matches)) => {
let target: Target = matches.value_of_t(FLAG_TARGET).unwrap_or_default();
let target: Target = *matches.get_one(FLAG_TARGET).unwrap();
let link_type = match (
matches.is_present(FLAG_LIB),