mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 01:16:50 +00:00
metrics: fix dead_code warning in test
BUG=b:344974550 TEST=tools/clippy Change-Id: I73016330a52cdee7d518892d33012c0eb99f4f79 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5609073 Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
This commit is contained in:
parent
d1c8d49249
commit
858c496b09
1 changed files with 3 additions and 0 deletions
|
@ -600,8 +600,11 @@ mod tests {
|
|||
assert_eq!(histogram.values, None);
|
||||
}
|
||||
|
||||
#[cfg(feature = "experimental")]
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
struct MyDetails(u64, u64);
|
||||
|
||||
#[cfg(feature = "experimental")]
|
||||
impl Details<u64> for MyDetails {
|
||||
fn value(&self) -> u64 {
|
||||
self.1 - self.0
|
||||
|
|
Loading…
Reference in a new issue