Format code

This commit is contained in:
Cameron Steffen 2022-02-01 13:38:54 -06:00 committed by Caleb Cartwright
parent 6c476127ae
commit d5aabccfeb
2 changed files with 3 additions and 3 deletions

View File

@ -22,10 +22,10 @@ pub fn is_unit(v: &syn::Variant) -> bool {
#[cfg(feature = "debug-with-rustfmt")]
/// Pretty-print the output of proc macro using rustfmt.
pub fn debug_with_rustfmt(input: &TokenStream) {
use std::io::Write;
use std::process::{Command, Stdio};
use std::env;
use std::ffi::OsStr;
use std::io::Write;
use std::process::{Command, Stdio};
let rustfmt_var = env::var_os("RUSTFMT");
let rustfmt = match &rustfmt_var {

View File

@ -1,8 +1,8 @@
// Integration tests for cargo-fmt.
use std::env;
use std::process::Command;
use std::path::Path;
use std::process::Command;
/// Run the cargo-fmt executable and return its output.
fn cargo_fmt(args: &[&str]) -> (String, String) {