Skip to content

Commit df9260e

Browse files
author
Jonathan Woollett-Light
committed
fix: Add Debug on DiffString generic
Adds `Debug` trait requirement to `impl DIffString`. Signed-off-by: Jonathan Woollett-Light <jcawl@amazon.co.uk>
1 parent 736af88 commit df9260e

File tree

1 file changed

+2
-2
lines changed
  • src/cpu-template-helper/src/utils

1 file changed

+2
-2
lines changed

src/cpu-template-helper/src/utils/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33

44
use std::ffi::OsString;
5-
use std::fmt::Display;
5+
use std::fmt::{Debug, Display};
66
use std::hash::Hash;
77
use std::path::{Path, PathBuf};
88
use std::sync::{Arc, Mutex};
@@ -33,7 +33,7 @@ pub trait DiffString<V> {
3333
fn to_diff_string(template: V, config: V) -> String;
3434
}
3535

36-
impl<V: Numeric> DiffString<V> for V {
36+
impl<V: Numeric + Debug> DiffString<V> for V {
3737
// Generate a string to display difference of filtered values between CPU template and guest
3838
// CPU config.
3939
#[rustfmt::skip]

0 commit comments

Comments
 (0)