about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-04-22 14:19:37 +0000
committerAlyssa Ross <hi@alyssa.is>2020-04-22 14:19:37 +0000
commit1a27ea150648f94984f916bd827aefad26e6da32 (patch)
tree2b083b8a980210703aa750dcb9892f29cdd37129
parent3bc2acbcc26a877900c08e417db1dba0dbdd2e02 (diff)
downloadpushmail-1a27ea150648f94984f916bd827aefad26e6da32.tar
pushmail-1a27ea150648f94984f916bd827aefad26e6da32.tar.gz
pushmail-1a27ea150648f94984f916bd827aefad26e6da32.tar.bz2
pushmail-1a27ea150648f94984f916bd827aefad26e6da32.tar.lz
pushmail-1a27ea150648f94984f916bd827aefad26e6da32.tar.xz
pushmail-1a27ea150648f94984f916bd827aefad26e6da32.tar.zst
pushmail-1a27ea150648f94984f916bd827aefad26e6da32.zip
Sort uses
-rw-r--r--src/main.rs7
-rw-r--r--src/util.rs6
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];