We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CLIPPY_ARGS
1 parent 2d53b6b commit 3cd5f44Copy full SHA for 3cd5f44
src/driver.rs
@@ -20,7 +20,7 @@ use rustc_span::symbol::Symbol;
20
use rustc_tools_util::VersionInfo;
21
22
use std::borrow::Cow;
23
-use std::env::{self, VarError};
+use std::env;
24
use std::lazy::SyncLazy;
25
use std::ops::Deref;
26
use std::panic;
@@ -314,13 +314,7 @@ pub fn main() {
314
};
315
316
let mut no_deps = false;
317
- let clippy_args_var = env::var("CLIPPY_ARGS").map_or_else(
318
- |e| match e {
319
- VarError::NotPresent => None,
320
- VarError::NotUnicode(s) => panic!("CLIPPY_ARGS is not valid Unicode: {:?}", s),
321
- },
322
- Some,
323
- );
+ let clippy_args_var = env::var("CLIPPY_ARGS").ok();
324
let clippy_args = clippy_args_var
325
.as_deref()
326
.unwrap_or_default()
0 commit comments