Changing allow(dead_code) to more specific exclusions

This commit is contained in:
Tomusdrw
2016-02-03 15:33:58 +01:00
parent a1bfcf17e3
commit a7b1b70fc1
8 changed files with 29 additions and 39 deletions

View File

@@ -1,6 +1,7 @@
//! Diff between two accounts.
use util::*;
#[cfg(test)]
use pod_account::*;
#[derive(Debug,Clone,PartialEq,Eq)]
@@ -49,9 +50,9 @@ impl AccountDiff {
}
}
#[cfg(test)]
/// 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 {