Revert "Don't use deprecated Arg::value_of_t"

This reverts commit 20275f480b.
This commit is contained in:
Richard Feldman 2022-07-24 13:58:08 -04:00
parent e2de5519a7
commit 4abad75d67
No known key found for this signature in database
GPG key ID: 7E4127D1E4241798

View file

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