rustfmt: stop pretending we're on nightly

We're not, and starting with 1.59 the test behavior actually differs
based on these env vars.
This commit is contained in:
K900
2022-04-06 01:13:54 +03:00
parent 4097e922f6
commit 557f7572d8
+2 -2
View File
@@ -18,8 +18,8 @@ rustPlatform.buildRustPackage rec {
# As of rustc 1.45.0, these env vars are required to build rustfmt (due to
# https://github.com/rust-lang/rust/pull/72001)
CFG_RELEASE = "${rustPlatform.rust.rustc.version}-nightly";
CFG_RELEASE_CHANNEL = "nightly";
CFG_RELEASE = rustPlatform.rust.rustc.version;
CFG_RELEASE_CHANNEL = "stable";
meta = with lib; {
description = "A tool for formatting Rust code according to style guidelines";