From 5f2aedebc204a43455a3f4ab6763607246d0d11f Mon Sep 17 00:00:00 2001 From: Mark Lodato Date: Thu, 16 Jun 2022 13:00:09 -0400 Subject: [PATCH] Update `clap` to 3.2 in tools using `value_parser` **Why?** The `value_parser` `clap` attribute was added in [version 3.2.0][0]. With the current version of `3.1.12` users can get errors like: ``` error: unexpected attribute: value_parser --> tools/spancmp/src/main.rs:18:25 | 18 | #[clap(short, long, value_parser, default_value_t = 0.0)] | ^^^^^^^^^^^^ ``` [0]: https://github.com/clap-rs/clap/blob/master/CHANGELOG.md#320---2022-06-13 --- tools/build-wasm-example/Cargo.toml | 2 +- tools/spancmp/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build-wasm-example/Cargo.toml b/tools/build-wasm-example/Cargo.toml index 998d3e800b32f..b0bf1bcffd293 100644 --- a/tools/build-wasm-example/Cargo.toml +++ b/tools/build-wasm-example/Cargo.toml @@ -9,4 +9,4 @@ license = "MIT OR Apache-2.0" [dependencies] xshell = "0.2" -clap = { version = "3.1.12", features = ["derive"] } +clap = { version = "3.2", features = ["derive"] } diff --git a/tools/spancmp/Cargo.toml b/tools/spancmp/Cargo.toml index 1256cafad819b..5b2b0c5749e92 100644 --- a/tools/spancmp/Cargo.toml +++ b/tools/spancmp/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0" [dependencies] serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } -clap = { version = "3.1.12", features = ["derive"] } +clap = { version = "3.2", features = ["derive"] } regex = "1.5" termcolor = "1.1" bevy_reflect = { path = "../../crates/bevy_reflect", version = "0.8.0-dev" }