From 1a27ea150648f94984f916bd827aefad26e6da32 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 22 Apr 2020 14:19:37 +0000 Subject: Sort uses --- src/main.rs | 7 +++---- src/util.rs | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index b8e9f75..cfc3045 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,6 +45,9 @@ use chrono::prelude::*; use clap::clap_app; use failure::{err_msg, format_err, Error}; use isahc::prelude::*; +use libc::{ + posix_spawn_file_actions_adddup2, posix_spawn_file_actions_init, posix_spawnp, waitpid, +}; use serde::Deserialize; use std::ffi::CString; use std::ffi::{OsStr, OsString}; @@ -54,10 +57,6 @@ use std::os::unix::prelude::*; use std::path::Path; use std::process::{exit, Command, ExitStatus, Stdio}; use std::ptr::{null, null_mut}; -use libc::{ - posix_spawn_file_actions_adddup2, posix_spawn_file_actions_init, posix_spawnp, - waitpid -}; use self::util::*; diff --git a/src/util.rs b/src/util.rs index 4ee4c4e..294375f 100644 --- a/src/util.rs +++ b/src/util.rs @@ -39,11 +39,11 @@ // without this exception; this exception also makes it possible to // release a modified version which carries forward this exception. -use std::io::prelude::*; -use std::io::{ErrorKind, self}; +use libc::{gethostname, _SC_HOST_NAME_MAX}; use std::ffi::OsString; +use std::io::prelude::*; +use std::io::{self, ErrorKind}; use std::os::unix::prelude::*; -use libc::{gethostname, _SC_HOST_NAME_MAX}; pub fn copy_stream(src: &mut dyn Read, dst: &mut dyn Write) -> io::Result<()> { let mut buf = vec![0; 65536]; -- cgit 1.4.1