Suppress warnings along with explanation.

This commit is contained in:
Gav Wood
2016-02-03 13:32:57 +01:00
parent c531150f44
commit 3f03ba40ee
5 changed files with 11 additions and 8 deletions

View File

@@ -49,8 +49,9 @@ impl AccountDiff {
}
}
/// Determine difference between two optionally existance `Account`s. Returns None
/// Determine difference between two optionally existant `Account`s. Returns None
/// if they are the same.
#[allow(dead_code)] // Used only in test code for now.
pub fn diff_pod(pre: Option<&PodAccount>, post: Option<&PodAccount>) -> Option<AccountDiff> {
match (pre, post) {
(None, Some(x)) => Some(AccountDiff {