]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_builtin_macros/src/env.rs
Rollup merge of #104901 - krtab:filetype_compare, r=the8472
[rust.git] / compiler / rustc_builtin_macros / src / env.rs
index b8828fa671a5ddbc30a21e130a7923fc6282842f..0b4e545f7a3d0360757c9588e97742e7f4e1f0c6 100644 (file)
@@ -53,7 +53,7 @@ pub fn expand_env<'cx>(
     tts: TokenStream,
 ) -> Box<dyn base::MacResult + 'cx> {
     let mut exprs = match get_exprs_from_tts(cx, sp, tts) {
-        Some(ref exprs) if exprs.is_empty() => {
+        Some(exprs) if exprs.is_empty() => {
             cx.span_err(sp, "env! takes 1 or 2 arguments");
             return DummyResult::any(sp);
         }