Format code
This commit is contained in:
parent
6c476127ae
commit
d5aabccfeb
@ -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 {
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user