Add size hint for Empty

This commit is contained in:
Luuk Machielse 2025-12-09 16:49:32 +01:00
parent a6fda0d9b2
commit 21638848c5

View file

@ -433,5 +433,9 @@ pub fn Empty(comptime T: type) type {
pub fn next(_: Empty(T)) ?Item { pub fn next(_: Empty(T)) ?Item {
return null; return null;
} }
pub fn sizeHint(_: *const Empty(T)) usize {
return 0;
}
}; };
} }