diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a4e9e22 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,11 @@ +name: CI +on: [push, pull_request] + +jobs: + test: + name: cargo test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1a5438a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -language: rust - -matrix: - include: - - env: TARGET=x86_64-unknown-linux-gnu - - - env: TARGET=thumbv7m-none-eabi - -before_install: set -e - -install: - - bash ci/install.sh - -script: - - bash ci/script.sh - -after_script: set +e - -cache: cargo -before_cache: - # Travis can't cache files that are not readable by "others" - - chmod -R a+r $HOME/.cargo - -branches: - only: - - staging - - trying - -notifications: - email: - on_success: never diff --git a/ci/install.sh b/ci/install.sh deleted file mode 100644 index ea7997c..0000000 --- a/ci/install.sh +++ /dev/null @@ -1,7 +0,0 @@ -set -euxo pipefail - -main() { - rustup target add $TARGET -} - -main diff --git a/ci/script.sh b/ci/script.sh deleted file mode 100644 index 452afcc..0000000 --- a/ci/script.sh +++ /dev/null @@ -1,11 +0,0 @@ -set -euxo pipefail - -main() { - if [ $TARGET = x86_64-unknown-linux-gnu ]; then - cargo test --target $TARGET - else - cargo check --target $TARGET - fi -} - -main diff --git a/src/lib.rs b/src/lib.rs index 25f313b..802366d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -173,7 +173,7 @@ where impl Borrow for Aligned where - A: sealed::Alignment, + A: Alignment, { fn borrow(&self) -> &T { &self.value @@ -182,7 +182,7 @@ where impl BorrowMut for Aligned where - A: sealed::Alignment, + A: Alignment, { fn borrow_mut(&mut self) -> &mut T { &mut self.value @@ -191,7 +191,7 @@ where impl Borrow<[ as AsSlice>::Element]> for Aligned where - A: sealed::Alignment, + A: Alignment, Aligned: AsSlice, { fn borrow(&self) -> &[ as AsSlice>::Element] { @@ -201,7 +201,7 @@ where impl BorrowMut<[ as AsSlice>::Element]> for Aligned where - A: sealed::Alignment, + A: Alignment, Aligned: AsMutSlice, { fn borrow_mut(&mut self) -> &mut [ as AsSlice>::Element] {