Skip to content

Commit

Permalink
Fix iteration over Box<[T]> which broke in MSRV 1.78
Browse files Browse the repository at this point in the history
  • Loading branch information
declanvk committed Aug 18, 2024
1 parent 4de6389 commit 9cbfbad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bytes/mapped.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ macro_rules! impl_ordered_bytes_ints_arrays {
fn to_bytes(values: $domain) -> Self::Bytes {
let mut bytes = Vec::with_capacity(values.len() * std::mem::size_of::<$elem>());

for value in values {
for value in Vec::from(values) {
bytes.extend(<Self as BytesMapping<$elem>>::to_bytes(value));
}

Expand Down

0 comments on commit 9cbfbad

Please sign in to comment.