Reorganized imports into a consistent style.

This commit is contained in:
Aaron Weiss 2017-06-22 14:14:49 -04:00
parent eecbe1630c
commit ec8fdeb2e9
No known key found for this signature in database
GPG key ID: 0237035D9BF03AE2
10 changed files with 44 additions and 25 deletions

View file

@ -6,7 +6,9 @@ use std::io::prelude::*;
use std::io::{Error, ErrorKind};
use std::net::{SocketAddr, ToSocketAddrs};
use std::path::Path;
use serde_json;
use error::Result;
/// Configuration data.
@ -285,11 +287,12 @@ impl Config {
#[cfg(test)]
mod test {
use super::Config;
use std::collections::HashMap;
use std::default::Default;
use std::path::Path;
use super::Config;
#[test]
fn load() {
let cfg = Config {

View file

@ -3,6 +3,7 @@ use std::borrow::ToOwned;
use std::cmp::Ordering;
use std::cmp::Ordering::{Less, Equal, Greater};
use std::str::FromStr;
use proto::{Mode, ChannelMode};
/// IRC User data.
@ -226,8 +227,8 @@ impl Iterator for AccessLevelIterator {
mod test {
use super::{AccessLevel, User};
use super::AccessLevel::*;
use proto::Mode::*;
use proto::ChannelMode as M;
use proto::Mode::*;
#[test]
fn parse_access_level() {