Skip to content

Commit

Permalink
refactor: move env/osstr imports to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Oct 4, 2020
1 parent 14d53f7 commit bdb1c44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config_proc_macro/src/utils.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use proc_macro2::TokenStream;
use quote::{quote, ToTokens};
use std::env;
use std::ffi::OsStr;

pub fn fold_quote<F, I, T>(input: impl Iterator<Item = I>, f: F) -> TokenStream
where
Expand All @@ -26,6 +24,8 @@ pub fn is_unit(v: &syn::Variant) -> bool {
pub fn debug_with_rustfmt(input: &TokenStream) {
use std::io::Write;
use std::process::{Command, Stdio};
use std::env;
use std::ffi::OsStr;

let rustfmt_var = env::var_os("RUSTFMT");
let rustfmt = match &rustfmt_var {
Expand Down

0 comments on commit bdb1c44

Please sign in to comment.