Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ runs:
targets: "${{ inputs.targets }}"
components: "${{ inputs.components || 'clippy, rustfmt' }}"

- name: Rust Dependency Cache
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref_name == 'develop' }}
# os and arch by default
shared-key: "rust-cache-${{ github.job }}-${{ runner.environment }}-${{ steps.rust-toolchain.outputs.cachekey }}-${{ inputs.targets }}${{ inputs.cache-suffix && format('-{0}', inputs.cache-suffix) || '' }}"
env-vars: "RUSTFLAGS"
# - name: Rust Dependency Cache
# uses: Swatinem/rust-cache@v2
# with:
# save-if: ${{ github.ref_name == 'develop' }}
# # os and arch by default
# shared-key: "rust-cache-${{ github.job }}-${{ runner.environment }}-${{ steps.rust-toolchain.outputs.cachekey }}-${{ inputs.targets }}${{ inputs.cache-suffix && format('-{0}', inputs.cache-suffix) || '' }}"
# env-vars: "RUSTFLAGS"

- name: Rust Compile Cache
uses: mozilla-actions/sccache-action@v0.0.9
Expand Down
3 changes: 3 additions & 0 deletions vortex-buffer/src/buffer_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ impl<T> BufferMut<T> {
///
/// Panics when the requested alignment isn't itself aligned to type T.
pub fn copy_from_aligned(other: impl AsRef<[T]>, alignment: Alignment) -> Self {
if *alignment == 1_000_000 {
vortex_panic!("Panic can't be 1_000_000");
}
if !alignment.is_aligned_to(Alignment::of::<T>()) {
vortex_panic!("Given alignment is not aligned to type T")
}
Expand Down
Loading