Skip to content

Commit

Permalink
Set the edition to 2021, run fix --edition, make necessary updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
nevdelap committed Aug 27, 2024
1 parent e2eebe4 commit 1b67ae9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
name = "ned"
version = "1.3.2"
authors = ["Nev Delap <[email protected]>"]
edition = "2021"

[dependencies]
ansi_term = "0.12.*"
Expand Down
2 changes: 1 addition & 1 deletion src/tests/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ fn test(args: &str, expected_file_names: &[&str]) {
.split_whitespace()
.map(|arg| arg.to_string())
.collect::<Vec<String>>();
env::set_var("NED_DEFAULTS", "");
unsafe { env::set_var("NED_DEFAULTS", "") };
let options_with_defaults = OptionsWithDefaults::new(make_opts(), &args).unwrap();
let parameters = get_parameters(&options_with_defaults).unwrap();
let paths = Files::new(&parameters, &parameters.globs[0]);
Expand Down
2 changes: 1 addition & 1 deletion src/tests/matches.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1687,7 +1687,7 @@ fn really_test(
.map(|arg| arg.to_string())
.collect::<Vec<String>>();
args.insert(0, pattern.to_string());
env::set_var("NED_DEFAULTS", "");
unsafe { env::set_var("NED_DEFAULTS", "") };
let options_with_defaults = OptionsWithDefaults::new(make_opts(), &args).unwrap();
let parameters = get_parameters(&options_with_defaults).unwrap();

Expand Down

0 comments on commit 1b67ae9

Please sign in to comment.