Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Mar 5, 2024
1 parent b7d82be commit 0864cb5
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 53 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

7 changes: 0 additions & 7 deletions ci/install.sh

This file was deleted.

11 changes: 0 additions & 11 deletions ci/script.sh

This file was deleted.

8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ where

impl<A, T> Borrow<T> for Aligned<A, T>
where
A: sealed::Alignment,
A: Alignment,
{
fn borrow(&self) -> &T {
&self.value
Expand All @@ -182,7 +182,7 @@ where

impl<A, T> BorrowMut<T> for Aligned<A, T>
where
A: sealed::Alignment,
A: Alignment,
{
fn borrow_mut(&mut self) -> &mut T {
&mut self.value
Expand All @@ -191,7 +191,7 @@ where

impl<A, T> Borrow<[<Aligned<A, T> as AsSlice>::Element]> for Aligned<A, T>
where
A: sealed::Alignment,
A: Alignment,
Aligned<A, T>: AsSlice,
{
fn borrow(&self) -> &[<Aligned<A, T> as AsSlice>::Element] {
Expand All @@ -201,7 +201,7 @@ where

impl<A, T> BorrowMut<[<Aligned<A, T> as AsSlice>::Element]> for Aligned<A, T>
where
A: sealed::Alignment,
A: Alignment,
Aligned<A, T>: AsMutSlice,
{
fn borrow_mut(&mut self) -> &mut [<Aligned<A, T> as AsSlice>::Element] {
Expand Down

0 comments on commit 0864cb5

Please sign in to comment.