Skip to content

Commit dfe05a9

Browse files
committed
chore: Bump MSRV to 1.85
1 parent 8b41d0b commit dfe05a9

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
build: [msrv, wasm, wasm-wasi, debug, release]
123123
include:
124124
- build: msrv
125-
rust: "1.74" # MSRV
125+
rust: "1.85" # MSRV
126126
target: x86_64-unknown-linux-gnu
127127
features: full
128128
- build: wasm

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ members = [
1414
repository = "https://github.com/clap-rs/clap"
1515
license = "MIT OR Apache-2.0"
1616
edition = "2021"
17-
rust-version = "1.74" # MSRV
17+
rust-version = "1.85" # MSRV
1818
include = [
1919
"build.rs",
2020
"src/**/*",

clap_builder/src/parser/parser.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,15 @@ impl<'cmd> Parser<'cmd> {
5454
) -> ClapResult<()> {
5555
debug!("Parser::get_matches_with");
5656

57-
ok!(self.parse(matcher, raw_args, args_cursor).map_err(|err| {
58-
if self.cmd.is_ignore_errors_set() {
59-
#[cfg(feature = "env")]
60-
let _ = self.add_env(matcher);
61-
let _ = self.add_defaults(matcher);
62-
}
63-
err
64-
}));
57+
ok!(self
58+
.parse(matcher, raw_args, args_cursor)
59+
.inspect_err(|_err| {
60+
if self.cmd.is_ignore_errors_set() {
61+
#[cfg(feature = "env")]
62+
let _ = self.add_env(matcher);
63+
let _ = self.add_defaults(matcher);
64+
}
65+
}));
6566
ok!(self.resolve_pending(matcher));
6667

6768
#[cfg(feature = "env")]

0 commit comments

Comments
 (0)