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.
1 parent 14d53f7 commit bdb1c44Copy full SHA for bdb1c44
config_proc_macro/src/utils.rs
@@ -1,7 +1,5 @@
1
use proc_macro2::TokenStream;
2
use quote::{quote, ToTokens};
3
-use std::env;
4
-use std::ffi::OsStr;
5
6
pub fn fold_quote<F, I, T>(input: impl Iterator<Item = I>, f: F) -> TokenStream
7
where
@@ -26,6 +24,8 @@ pub fn is_unit(v: &syn::Variant) -> bool {
26
24
pub fn debug_with_rustfmt(input: &TokenStream) {
27
25
use std::io::Write;
28
use std::process::{Command, Stdio};
+ use std::env;
+ use std::ffi::OsStr;
29
30
let rustfmt_var = env::var_os("RUSTFMT");
31
let rustfmt = match &rustfmt_var {
0 commit comments