Skip to content

Commit

Permalink
Merge branch 'master' of github.com:droundy/arrayref
Browse files Browse the repository at this point in the history
  • Loading branch information
droundy committed Aug 16, 2018
2 parents fef0206 + f151f5c commit c0045e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ repository = "https://github.com/droundy/arrayref"
documentation = "https://docs.rs/arrayref"

[dev-dependencies]
quickcheck = "0.4"
quickcheck = "0.6"
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ macro_rules! array_ref {
}
let offset = $offset;
let slice = & $arr[offset..offset + $len];
#[allow(unused_unsafe)]
unsafe {
as_array(slice)
}
Expand Down Expand Up @@ -127,6 +128,7 @@ macro_rules! array_refs {
} ),*)
}
let input = $arr;
#[allow(unused_unsafe)]
unsafe {
as_arrays(input)
}
Expand All @@ -145,6 +147,7 @@ macro_rules! array_refs {
} ),* )
}
let input = $arr;
#[allow(unused_unsafe)]
unsafe {
as_arrays(input)
}
Expand Down Expand Up @@ -220,6 +223,7 @@ macro_rules! mut_array_refs {
} ),*)
}
let input = $arr;
#[allow(unused_unsafe)]
unsafe {
as_arrays(input)
}
Expand All @@ -238,6 +242,7 @@ macro_rules! mut_array_refs {
} ),* )
}
let input = $arr;
#[allow(unused_unsafe)]
unsafe {
as_arrays(input)
}
Expand Down Expand Up @@ -279,6 +284,7 @@ macro_rules! array_mut_ref {
}
let offset = $offset;
let slice = &mut $arr[offset..offset + $len];
#[allow(unused_unsafe)]
unsafe {
as_array(slice)
}
Expand Down

0 comments on commit c0045e3

Please sign in to comment.