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:
Daniel Verkamp 2024-05-16 17:43:56 -07:00 committed by crosvm LUCI
parent d1c8d49249
commit 858c496b09

View file

@ -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