Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit a63be70

Browse files
committed
Merge pull request #888 from ethcore/h256
Removing match on constant
2 parents 6087590 + 04d5b5c commit a63be70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethcore/src/account.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl Account {
138138
/// get someone who knows to call `note_code`.
139139
pub fn code(&self) -> Option<&[u8]> {
140140
match self.code_hash {
141-
Some(c) if c == SHA3_EMPTY && self.code_cache.is_empty() => Some(&self.code_cache),
141+
Some(c) if c == SHA3_EMPTY && self.code_cache.is_empty() => Some(&self.code_cache),
142142
Some(_) if !self.code_cache.is_empty() => Some(&self.code_cache),
143143
None => Some(&self.code_cache),
144144
_ => None,

0 commit comments

Comments
 (0)