pvimg: Fix hidden inferred bound

The associated type bound  for Iterator::Item was unsatisfied for Self.
Fix this by requiring Sized for IntoEnumIterator.

Fixes: 1d2a89b387 ("pvimg: Improve the readability of Display output for control flags")
Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Steffen Eiden
2026-04-07 13:58:40 +02:00
committed by Jan Höppner
parent 280b8509d1
commit 801e404160

View File

@@ -28,7 +28,7 @@ use std::{fmt::Display, fmt::LowerHex, marker::PhantomData, mem::size_of};
use pv::misc::{Flags, Msb0Flags64};
pub trait IntoEnumIterator {
pub trait IntoEnumIterator: Sized {
/// Returns an iterator over all variants of this enum.
fn iter() -> impl Iterator<Item = Self>;
}