about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2022-02-01 13:38:54 -0600
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2022-02-15 19:44:53 -0600
commitd5aabccfebc645d9fce62f91512b03ca0fa1fb6d (patch)
tree09ebe1862e97c90239836b4461f79455a1bd852b
parent6c476127aedc37b43769469f87e0fbc382382739 (diff)
downloadrust-d5aabccfebc645d9fce62f91512b03ca0fa1fb6d.tar.gz
rust-d5aabccfebc645d9fce62f91512b03ca0fa1fb6d.zip
Format code
-rw-r--r--config_proc_macro/src/utils.rs4
-rw-r--r--tests/cargo-fmt/main.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/config_proc_macro/src/utils.rs b/config_proc_macro/src/utils.rs
index 5b68d274849..f5cba87b07b 100644
--- a/config_proc_macro/src/utils.rs
+++ b/config_proc_macro/src/utils.rs
@@ -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 {
diff --git a/tests/cargo-fmt/main.rs b/tests/cargo-fmt/main.rs
index bf81f253f69..3713552c66a 100644
--- a/tests/cargo-fmt/main.rs
+++ b/tests/cargo-fmt/main.rs
@@ -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) {