Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoverbear committed Aug 14, 2018
1 parent dcd607c commit 88893fd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/log_unstable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ impl Unstable {

#[cfg(test)]
mod test {
use test_init;
use eraftpb::{Entry, Snapshot, SnapshotMetadata};
use log_unstable::Unstable;
use test_init;

fn new_entry(index: u64, term: u64) -> Entry {
let mut e = Entry::new();
Expand Down
2 changes: 1 addition & 1 deletion src/progress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ impl Inflights {

#[cfg(test)]
mod test {
use test_init;
use progress::Inflights;
use test_init;

#[test]
fn test_inflight_add() {
Expand Down
2 changes: 1 addition & 1 deletion src/raft_log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,12 +487,12 @@ impl<T: Storage> RaftLog<T> {
mod test {
use std::panic::{self, AssertUnwindSafe};

use test_init;
use eraftpb;
use errors::{Error, StorageError};
use protobuf;
use raft_log::{self, RaftLog};
use storage::MemStorage;
use test_init;

fn new_raft_log(s: MemStorage) -> RaftLog<MemStorage> {
RaftLog::new(s, String::from(""))
Expand Down
2 changes: 1 addition & 1 deletion src/raw_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ impl<T: Storage> RawNode<T> {
#[cfg(test)]
mod test {
use super::is_local_msg;
use test_init;
use eraftpb::MessageType;
use test_init;

#[test]
fn test_is_local_msg() {
Expand Down
2 changes: 1 addition & 1 deletion src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ mod test {
use eraftpb::{ConfState, Entry, Snapshot};
use protobuf;

use test_init;
use errors::{Error as RaftError, StorageError};
use storage::{MemStorage, Storage};
use test_init;

// TODO extract these duplicated utility functions for tests

Expand Down
2 changes: 1 addition & 1 deletion tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

#[macro_use]
extern crate log;
extern crate env_logger;
extern crate protobuf;
extern crate raft;
extern crate rand;
extern crate env_logger;

/// Get the count of macro's arguments.
///
Expand Down

0 comments on commit 88893fd

Please sign in to comment.