diff --git a/src/errors.rs b/src/errors.rs index d6dbeaf..9be30b3 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,7 +1,7 @@ /// # Fantom/libconsensus/errors /// /// This file defines a set of errors which are used within the consensus traits. -use failure::{Error as FailureError}; +use failure::Error as FailureError; use libcommon_rs::errors::Error as BaseError; use libtransport::errors::Error as TransportError; diff --git a/src/lib.rs b/src/lib.rs index 3ca8227..aa7db1c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,7 +8,8 @@ /// For an example of an implementation of the traits, refer to the libconsensus-dag repository: /// https://github.com/Fantom-foundation/libconsensus-dag. extern crate serde_derive; -#[macro_use] extern crate failure; +#[macro_use] +extern crate failure; use crate::errors::Result; use futures::stream::Stream; use libcommon_rs::peer::{Peer, PeerId};