Skip to content

Commit 37b015b

Browse files
authored
Merge branch 'main' into deprecation-cleanup
2 parents e4f291d + 05a85b3 commit 37b015b

File tree

6 files changed

+7
-9
lines changed

6 files changed

+7
-9
lines changed

.buildkite/custom-tests.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
{
2424
"test_name": "miri",
25-
"command": "RUST_BACKTRACE=1 MIRIFLAGS='-Zmiri-disable-isolation -Zmiri-panic-on-unsupported -Zmiri-backtrace=full' cargo +nightly miri test --features backend-mmap",
25+
"command": "RUST_BACKTRACE=1 MIRIFLAGS='-Zmiri-disable-isolation -Zmiri-backtrace=full' cargo +nightly miri test --features backend-mmap",
2626
"platform": ["x86_64", "aarch64"]
2727
},
2828
{

src/bitmap/backend/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ impl<B> BaseSlice<B> {
2626
}
2727
}
2828

29-
impl<'a, B> WithBitmapSlice<'a> for BaseSlice<B>
29+
impl<B> WithBitmapSlice<'_> for BaseSlice<B>
3030
where
3131
B: Clone + Deref,
3232
B::Target: Bitmap,

src/bitmap/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ pub trait Bitmap: for<'a> WithBitmapSlice<'a> {
4949

5050
/// A no-op `Bitmap` implementation that can be provided for backends that do not actually
5151
/// require the tracking functionality.
52-
53-
impl<'a> WithBitmapSlice<'a> for () {
52+
impl WithBitmapSlice<'_> for () {
5453
type S = Self;
5554
}
5655

@@ -67,7 +66,6 @@ impl Bitmap for () {
6766
}
6867

6968
/// A `Bitmap` and `BitmapSlice` implementation for `Option<B>`.
70-
7169
impl<'a, B> WithBitmapSlice<'a> for Option<B>
7270
where
7371
B: WithBitmapSlice<'a>,

src/mmap_xen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ fn page_size() -> u64 {
489489

490490
fn pages(size: usize) -> (usize, usize) {
491491
let page_size = page_size() as usize;
492-
let num = (size + page_size - 1) / page_size;
492+
let num = size.div_ceil(page_size);
493493

494494
(num, page_size * num)
495495
}

src/volatile_memory.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ pub struct VolatileRef<'a, T, B = ()> {
886886
mmap: Option<&'a MmapInfo>,
887887
}
888888

889-
impl<'a, T> VolatileRef<'a, T, ()>
889+
impl<T> VolatileRef<'_, T, ()>
890890
where
891891
T: ByteValued,
892892
{
@@ -1017,7 +1017,7 @@ pub struct VolatileArrayRef<'a, T, B = ()> {
10171017
mmap: Option<&'a MmapInfo>,
10181018
}
10191019

1020-
impl<'a, T> VolatileArrayRef<'a, T>
1020+
impl<T> VolatileArrayRef<'_, T>
10211021
where
10221022
T: ByteValued,
10231023
{

0 commit comments

Comments
 (0)