Skip to content

Commit

Permalink
Don't require the CpuIdReader trait support Debug to implement Debug …
Browse files Browse the repository at this point in the history
…on CpuId.
  • Loading branch information
khuey authored and gz committed May 3, 2023
1 parent 7929f41 commit bb82f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ impl<R: CpuIdReader> CpuId<R> {
}
}

impl<R: CpuIdReader + Debug> Debug for CpuId<R> {
impl<R: CpuIdReader> Debug for CpuId<R> {
fn fmt(&self, f: &mut Formatter<'_>) -> core::fmt::Result {
f.debug_struct("CpuId")
.field("vendor", &self.vendor)
Expand Down

0 comments on commit bb82f81

Please sign in to comment.