Skip to content

Commit 24ae004

Browse files
committed
Format code
1 parent 8b0b213 commit 24ae004

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config_proc_macro/src/utils.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ pub fn is_unit(v: &syn::Variant) -> bool {
2222
#[cfg(feature = "debug-with-rustfmt")]
2323
/// Pretty-print the output of proc macro using rustfmt.
2424
pub fn debug_with_rustfmt(input: &TokenStream) {
25-
use std::io::Write;
26-
use std::process::{Command, Stdio};
2725
use std::env;
2826
use std::ffi::OsStr;
27+
use std::io::Write;
28+
use std::process::{Command, Stdio};
2929

3030
let rustfmt_var = env::var_os("RUSTFMT");
3131
let rustfmt = match &rustfmt_var {

tests/cargo-fmt/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Integration tests for cargo-fmt.
22

33
use std::env;
4-
use std::process::Command;
54
use std::path::Path;
5+
use std::process::Command;
66

77
/// Run the cargo-fmt executable and return its output.
88
fn cargo_fmt(args: &[&str]) -> (String, String) {

0 commit comments

Comments
 (0)