Skip to content

Commit

Permalink
Convert VIN argument to uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
zeld committed Jul 3, 2023
1 parent e8e774e commit ced40af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async fn main() -> Result<(), Error> {
.get_matches();

let interactive = !matches.contains_id("silent");
let vin = matches.value_of("VIN");
let vin = matches.value_of("VIN").map(|s| s.to_uppercase());
let vin_provided_as_arg = vin.is_some();
let map = matches.value_of("map");

Expand Down

0 comments on commit ced40af

Please sign in to comment.