Skip to content

Commit

Permalink
Add 2024 edition to rustfmt tool
Browse files Browse the repository at this point in the history
This fixes bazelbuild#3287
  • Loading branch information
havasd committed Feb 23, 2025
1 parent 09472f7 commit 5d203fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/rustfmt/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ fn get_default_edition() -> &'static str {

/// Get a list of all editions to run formatting for
fn get_editions() -> Vec<String> {
vec!["2015".to_owned(), "2018".to_owned(), "2021".to_owned()]
vec![
"2015".to_owned(),
"2018".to_owned(),
"2021".to_owned(),
"2024".to_owned(),
]
}

/// Run a bazel command, capturing stdout while streaming stderr to surface errors
Expand Down

0 comments on commit 5d203fa

Please sign in to comment.