Skip to content

Commit

Permalink
Fix misc compile warnings (openethereum#11258)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdplm authored and niklasad1 committed Nov 13, 2019
1 parent db1ea1d commit e194a2c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion accounts/ethstore/src/json/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl<'a> Into<String> for &'a Uuid {
let d3 = &self.0[6..8];
let d4 = &self.0[8..10];
let d5 = &self.0[10..16];
[d1, d2, d3, d4, d5].into_iter().map(|d| d.to_hex()).collect::<Vec<String>>().join("-")
[d1, d2, d3, d4, d5].iter().map(|d| d.to_hex()).collect::<Vec<String>>().join("-")
}
}

Expand Down
9 changes: 9 additions & 0 deletions ethcore/builtin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,30 +359,39 @@ impl Implementation for EthereumBuiltin {
}

#[derive(Debug)]
/// The identity builtin
pub struct Identity;

#[derive(Debug)]
/// The EC Recover builtin
pub struct EcRecover;

#[derive(Debug)]
/// The Sha256 builtin
pub struct Sha256;

#[derive(Debug)]
/// The Ripemd160 builtin
pub struct Ripemd160;

#[derive(Debug)]
/// The Modexp builtin
pub struct Modexp;

#[derive(Debug)]
/// The Bn128Add builtin
pub struct Bn128Add;

#[derive(Debug)]
/// The Bn128Mul builtin
pub struct Bn128Mul;

#[derive(Debug)]
/// The Bn128Pairing builtin
pub struct Bn128Pairing;

#[derive(Debug)]
/// The Blake2F builtin
pub struct Blake2F;

impl Implementation for Identity {
Expand Down
2 changes: 1 addition & 1 deletion ethcore/machine/src/tx_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub struct TransactionFilter {
contract_address: Address,
transition_block: BlockNumber,
permission_cache: Mutex<LruCache<(H256, Address), u32>>,
contract_version_cache: Mutex<LruCache<(H256), Option<U256>>>
contract_version_cache: Mutex<LruCache<H256, Option<U256>>>
}

impl TransactionFilter {
Expand Down
2 changes: 1 addition & 1 deletion ethcore/src/client/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ impl Client {
gas: U256::from(50_000_000),
gas_price: U256::default(),
value: U256::default(),
data: data,
data,
}.fake_sign(from)
}

Expand Down
4 changes: 2 additions & 2 deletions parity/rpc_apis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ impl ApiSet {
Api::Rpc,
Api::Private,
]
.into_iter()
.iter()
.cloned()
.collect();

Expand Down Expand Up @@ -750,7 +750,7 @@ impl ApiSet {
Api::Traces,
Api::ParityTransactionsPool,
]
.into_iter()
.iter()
.cloned()
.collect(),
}
Expand Down
2 changes: 1 addition & 1 deletion util/EIP-712/src/encode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ fn check_hex(string: &str) -> Result<()> {
}
/// given a type and HashMap<String, Vec<FieldType>>
/// returns a HashSet of dependent types of the given type
fn build_dependencies<'a>(message_type: &'a str, message_types: &'a MessageTypes) -> Option<(HashSet<&'a str>)>
fn build_dependencies<'a>(message_type: &'a str, message_types: &'a MessageTypes) -> Option<HashSet<&'a str>>
{
if message_types.get(message_type).is_none() {
return None;
Expand Down

0 comments on commit e194a2c

Please sign in to comment.