Skip to content

Commit

Permalink
Upgrade to Rust edition 2021
Browse files Browse the repository at this point in the history
  • Loading branch information
TheElectronWill committed Apr 19, 2023
1 parent 7e6e42e commit 35289b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "scaphandre"
version = "0.5.0"
authors = ["Benoit Petit <bpetit@hubblo.org>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
description = "Electrical power consumption measurement agent."
repository = "https://github.com/hubblo-org/scaphandre"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ mod test {
fn test_help() {
fn assert_shows_help(args: &[&str]) {
match Cli::try_parse_from(args) {
Ok(_) => panic!("The CLI didn't generate a help message for {:?}, are the inputs correct?", args),
Ok(_) => panic!("The CLI didn't generate a help message for {args:?}, are the inputs correct?"),
Err(e) => assert_eq!(e.kind(), clap::error::ErrorKind::DisplayHelp, "The CLI emitted an error for {args:?}:\n{e}")
};
}
Expand Down

0 comments on commit 35289b1

Please sign in to comment.