Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuajbouw committed Apr 26, 2021
1 parent 78cd114 commit 7f7f1c4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/precompiles/blake2.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::precompiles::{Precompile, PrecompileResult};
use crate::prelude::{Borrowed, mem, TryInto};
use crate::prelude::{mem, Borrowed, TryInto};
use evm::{Context, ExitError, ExitSucceed};

/// Blake2 costs.
Expand Down
10 changes: 5 additions & 5 deletions src/precompiles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ mod modexp;
mod secp256k1;

use crate::precompiles::blake2::Blake2F;
pub(crate) use crate::precompiles::secp256k1::ecrecover;
use crate::precompiles::bn128::{BN128Add, BN128Mul, BN128Pair};
use crate::prelude::{Address, Vec};
use evm::{Context, ExitError, ExitSucceed};
use crate::precompiles::secp256k1::ECRecover;
use crate::precompiles::hash::{SHA256, RIPEMD160};
use crate::precompiles::hash::{RIPEMD160, SHA256};
use crate::precompiles::identity::Identity;
use crate::precompiles::modexp::ModExp;
pub(crate) use crate::precompiles::secp256k1::ecrecover;
use crate::precompiles::secp256k1::ECRecover;
use crate::prelude::{Address, Vec};
use evm::{Context, ExitError, ExitSucceed};

/// A precompile operation result.
type PrecompileResult = Result<(ExitSucceed, Vec<u8>, u64), ExitError>;
Expand Down
2 changes: 1 addition & 1 deletion src/precompiles/modexp.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::precompiles::{HardFork, Precompile, PrecompileResult, Berlin, Byzantium};
use crate::precompiles::{Berlin, Byzantium, HardFork, Precompile, PrecompileResult};
use crate::prelude::{PhantomData, Vec, U256};
use evm::{Context, ExitError, ExitSucceed};
use num::BigUint;
Expand Down
2 changes: 1 addition & 1 deletion src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub use alloc::{
vec::Vec,
};
#[cfg(not(feature = "std"))]
pub use core::{marker::PhantomData, convert::TryInto, mem};
pub use core::{convert::TryInto, marker::PhantomData, mem};
#[cfg(feature = "std")]
pub use std::{
borrow::Cow::Borrowed, borrow::ToOwned, boxed::Box, collections::HashMap, convert::TryInto,
Expand Down

0 comments on commit 7f7f1c4

Please sign in to comment.