diff --git a/crates/proto/src/rr/domain/name.rs b/crates/proto/src/rr/domain/name.rs index 343dc6351f..280da4f29f 100644 --- a/crates/proto/src/rr/domain/name.rs +++ b/crates/proto/src/rr/domain/name.rs @@ -1043,7 +1043,7 @@ impl<'r> BinDecodable<'r> for Name { /// all names will be stored lowercase internally. /// This will consume the portions of the `Vec` which it is reading... fn read(decoder: &mut BinDecoder<'r>) -> ProtoResult { - let mut labels: SmallVec<[Label; 4]> = SmallVec::new(); + let mut labels = SmallVec::new(); read_inner(decoder, &mut labels, None)?; Ok(Name { is_fqdn: true,