diff --git a/Cargo.toml b/Cargo.toml index b62a25431ed98..9103ebf932804 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,7 @@ readme = "README.md" license = "Apache-2.0/MIT" build = "build.rs" categories = ["development-tools"] +edition = "2018" [[bin]] name = "rustfmt" diff --git a/ci/integration.sh b/ci/integration.sh index 1e050218905a6..48a652b8dfbe4 100755 --- a/ci/integration.sh +++ b/ci/integration.sh @@ -15,7 +15,7 @@ set -ex # it again. # #which cargo-fmt || cargo install --force -cargo install --force +cargo install --path . --force echo "Integration tests for: ${INTEGRATION}" cargo fmt -- --version diff --git a/rustfmt.toml b/rustfmt.toml index eaa109c29dad7..eccd5f9bd19ee 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,4 +1,3 @@ error_on_line_overflow = true error_on_unformatted = true version = "Two" -edition = "2018"