Skip to content

Commit

Permalink
Regroup mods and use canonical pub use style.
Browse files Browse the repository at this point in the history
  • Loading branch information
remoun authored and Remoun Metyas committed Mar 1, 2022
1 parent 06953de commit c034900
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion attest/ake/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ mod responder;
mod shared;
mod state;

pub use self::{
pub use crate::{
error::Error,
event::{
AuthRequestOutput, AuthResponseInput, AuthResponseOutput, Ciphertext,
Expand Down
2 changes: 1 addition & 1 deletion attest/net/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern crate core;

mod traits;

pub use self::traits::{Error, RaClient, Result};
pub use crate::traits::{Error, RaClient, Result};

// Export the "build-configured" RaClient so that downstream doesn't need
// to copy paste this cfg_if every where and have a build.rs unnecessarily
Expand Down
2 changes: 1 addition & 1 deletion connection/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mod sync;
mod thick;
mod traits;

pub use self::{
pub use crate::{
credentials::{
AnyCredentialsError, AnyCredentialsProvider, AuthenticationError, CredentialsProvider,
CredentialsProviderError, HardcodedCredentialsProvider, TokenBasicCredentialsProvider,
Expand Down
2 changes: 1 addition & 1 deletion connection/test-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ pub fn test_client_uri(node_id: u32) -> ConsensusClientUri {
.expect("Could not construct client uri from string")
}

pub use self::{blockchain::MockBlockchainConnection, user_tx::MockUserTxConnection};
pub use crate::{blockchain::MockBlockchainConnection, user_tx::MockUserTxConnection};
2 changes: 1 addition & 1 deletion consensus/scp/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub mod test_utils;
mod utils;

#[doc(inline)]
pub use self::{
pub use crate::{
core_types::{CombineFn, GenericNodeId, Identifier, SlotIndex, ValidityFn, Value},
msg::{Msg, Topic},
node::{MockScpNode, Node, ScpNode},
Expand Down
8 changes: 5 additions & 3 deletions transaction/core/src/membership_proofs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ use mc_crypto_hashes::{Blake2b256, Digest};
use subtle::{Choice, ConditionallySelectable, ConstantTimeEq};

mod errors;
pub use errors::Error as MembershipProofError;

mod range;
pub use range::{Range, RangeError};

pub use self::{
errors::Error as MembershipProofError,
range::{Range, RangeError},
};

lazy_static! {
pub static ref NIL_HASH: [u8; 32] = hash_nil();
Expand Down
2 changes: 1 addition & 1 deletion util/build/script/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mod env;
mod utils;
mod vars;

pub use self::{
pub use crate::{
cargo_build::CargoBuilder,
env::{
Endianness, EndiannessError, Environment, EnvironmentError, TargetFamily, TargetFamilyError,
Expand Down
2 changes: 1 addition & 1 deletion util/logger-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
extern crate proc_macro;

mod error;
use crate::error::{DiagnosticError, Result};

use self::error::{DiagnosticError, Result};
use proc_macro::TokenStream;
use quote::quote;
use syn::parse_quote;
Expand Down

0 comments on commit c034900

Please sign in to comment.