Skip to content

Commit 8762c4d

Browse files
committed
Rust 1.78 tested
Signed-off-by: Moritz Hoffmann <antiguru@gmail.com>
1 parent bf3b9a0 commit 8762c4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- windows
1616
toolchain:
1717
- stable
18-
- 1.81
18+
- 1.78
1919
name: cargo test on ${{ matrix.os }}, rust ${{ matrix.toolchain }}
2020
runs-on: ${{ matrix.os }}-latest
2121
steps:

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,8 +1086,8 @@ pub mod primitive {
10861086
#[inline(always)]
10871087
fn as_bytes(&self) -> impl Iterator<Item=(u64, &'a [u8])> {
10881088
let iter = self.values.as_bytes();
1089-
let iter = crate::chain_one(iter, (align_of::<u64>() as u64, bytemuck::cast_slice(std::slice::from_ref(self.last_word))));
1090-
crate::chain_one(iter, (align_of::<u64>() as u64, bytemuck::cast_slice(std::slice::from_ref(self.last_bits))))
1089+
let iter = crate::chain_one(iter, (std::mem::align_of::<u64>() as u64, bytemuck::cast_slice(std::slice::from_ref(self.last_word))));
1090+
crate::chain_one(iter, (std::mem::align_of::<u64>() as u64, bytemuck::cast_slice(std::slice::from_ref(self.last_bits))))
10911091
}
10921092
}
10931093

0 commit comments

Comments
 (0)