Explain evil

This commit is contained in:
Ayaz Hafiz 2022-11-09 09:14:16 -06:00
parent a2e90c3709
commit 54f4a70a0b
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58

View file

@ -620,8 +620,9 @@ impl Types {
}
#[allow(clippy::wrong_self_convention)]
pub fn from_old_type_slice<'a, B>(
pub fn from_old_type_slice<B>(
&mut self,
// evil, but allows us to emulate reference-polymorphism
old: impl ExactSizeIterator<Item = B>,
) -> Slice<TypeTag>
where