We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b0b213 commit 24ae004Copy full SHA for 24ae004
config_proc_macro/src/utils.rs
@@ -22,10 +22,10 @@ pub fn is_unit(v: &syn::Variant) -> bool {
22
#[cfg(feature = "debug-with-rustfmt")]
23
/// Pretty-print the output of proc macro using rustfmt.
24
pub fn debug_with_rustfmt(input: &TokenStream) {
25
- use std::io::Write;
26
- use std::process::{Command, Stdio};
27
use std::env;
28
use std::ffi::OsStr;
+ use std::io::Write;
+ use std::process::{Command, Stdio};
29
30
let rustfmt_var = env::var_os("RUSTFMT");
31
let rustfmt = match &rustfmt_var {
tests/cargo-fmt/main.rs
@@ -1,8 +1,8 @@
1
// Integration tests for cargo-fmt.
2
3
4
-use std::process::Command;
5
use std::path::Path;
+use std::process::Command;
6
7
/// Run the cargo-fmt executable and return its output.
8
fn cargo_fmt(args: &[&str]) -> (String, String) {
0 commit comments