Skip to content

Commit

Permalink
Drop redundant resolver setting for 2021 edition
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Bulatov authored and SomeoneToIgnore committed Apr 21, 2022
1 parent 9d3779c commit 629688f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .config/hakari.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dep-format-version = "2"
# Hakari works much better with the new feature resolver.
# For more about the new feature resolver, see:
# https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#cargos-new-feature-resolver
# Have to keep the resolver still here since hakari requires this field,
# despite it's now the default for 2021 edition & cargo.
resolver = "2"

# Add triples corresponding to platforms commonly used by developers here.
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ members = [
"zenith_metrics",
"zenith_utils",
]
resolver = "2"

[profile.release]
# This is useful for profiling and, to some extent, debug.
Expand Down
2 changes: 1 addition & 1 deletion pre-commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def colorify(


def rustfmt(fix_inplace: bool = False, no_color: bool = False) -> str:
cmd = "rustfmt --edition=2018"
cmd = "rustfmt --edition=2021"
if not fix_inplace:
cmd += " --check"
if no_color:
Expand Down

0 comments on commit 629688f

Please sign in to comment.