Skip to content

Commit ff1a2a6

Browse files
authored
Force edition 2024 for rustfmt (#22)
1 parent 7a083ec commit ff1a2a6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.cargo/config.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ rustflags = [
1111
"-Wclippy::dbg_macro",
1212
"-Wclippy::debug_assert_with_mut_call",
1313
"-Wclippy::doc_markdown",
14-
"-Wclippy::empty_enum",
1514
"-Wclippy::enum_glob_use",
1615
"-Wclippy::exit",
1716
"-Wclippy::expl_impl_clone_on_copy",
@@ -39,7 +38,6 @@ rustflags = [
3938
"-Wclippy::map_err_ignore",
4039
"-Wclippy::map_flatten",
4140
"-Wclippy::map_unwrap_or",
42-
"-Wclippy::match_on_vec_items",
4341
"-Wclippy::match_same_arms",
4442
"-Wclippy::match_wild_err_arm",
4543
"-Wclippy::match_wildcard_for_single_variants",
@@ -62,7 +60,6 @@ rustflags = [
6260
"-Wclippy::string_add_assign",
6361
"-Wclippy::string_add",
6462
"-Wclippy::string_lit_as_bytes",
65-
"-Wclippy::string_to_string",
6663
"-Wclippy::todo",
6764
"-Wclippy::trait_duplication_in_bounds",
6865
"-Wclippy::unimplemented",

.github/workflows/rust-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: check rustfmt
2424
run: |
2525
rustup component add rustfmt
26-
cargo fmt -- --check --color always
26+
rustfmt --check --color always --edition 2024 toml-span/src/**.rs
2727
2828
# run clippy to verify we have no warnings
2929
- run: cargo fetch

0 commit comments

Comments
 (0)