Fixing clippy warnings. Implementing PartialEq for Uints

This commit is contained in:
Tomusdrw
2016-02-23 11:40:23 +01:00
parent c2952b49b4
commit 07e704c968
10 changed files with 57 additions and 44 deletions

View File

@@ -581,9 +581,10 @@ impl Interpreter {
let code_address = stack.pop_back();
let code_address = u256_to_address(&code_address);
let value = match instruction == instructions::DELEGATECALL {
true => None,
false => Some(stack.pop_back())
let value = if instruction == instructions::DELEGATECALL {
None
} else {
Some(stack.pop_back())
};
let in_off = stack.pop_back();