Reorganized imports into a consistent style.
This commit is contained in:
parent
eecbe1630c
commit
ec8fdeb2e9
10 changed files with 44 additions and 25 deletions
|
@ -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 {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue