1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-06-27 00:41:21 +02:00

Avoid using RUSTFLAGS to not trigger rebuilding, especially in rust-analyzer

This commit is contained in:
mo8it
2024-08-07 23:35:50 +02:00
parent bdf4960b6a
commit 286a455fa9
2 changed files with 25 additions and 35 deletions

View File

@ -129,13 +129,6 @@ impl<'out> CargoSubcommand<'out> {
self
}
/// RUSTFLAGS="-A warnings"
#[inline]
pub fn hide_warnings(&mut self) -> &mut Self {
self.cmd.env("RUSTFLAGS", "-A warnings");
self
}
/// The boolean in the returned `Result` is true if the command's exit status is success.
#[inline]
pub fn run(self, description: &str) -> Result<bool> {