fix: Add missing #[must_use] attributes
Clippy was very unhappy.
This commit is contained in:
parent
90389705a7
commit
ca263b33a1
|
@ -73,6 +73,7 @@ impl PhysAddr {
|
|||
/// Aligns the physical address upwards to the given alignment.
|
||||
///
|
||||
/// See the `align_up` function for more information.
|
||||
#[must_use]
|
||||
pub fn aligned_up<U>(self, align: U) -> Self
|
||||
where
|
||||
U: Into<u64>,
|
||||
|
@ -83,6 +84,7 @@ impl PhysAddr {
|
|||
/// Aligns the physical address downwards to the given alignment.
|
||||
///
|
||||
/// See the `align_down` function for more information.
|
||||
#[must_use]
|
||||
pub fn aligned_down<U>(self, align: U) -> Self
|
||||
where
|
||||
U: Into<u64>,
|
||||
|
|
|
@ -108,6 +108,7 @@ impl VirtAddr {
|
|||
/// Aligns the virtual address upwards to the given alignment.
|
||||
///
|
||||
/// See the `align_up` free function for more information.
|
||||
#[must_use]
|
||||
pub fn aligned_up<U>(self, align: U) -> Self
|
||||
where
|
||||
U: Into<u64>,
|
||||
|
@ -118,6 +119,7 @@ impl VirtAddr {
|
|||
/// Aligns the virtual address downwards to the given alignment.
|
||||
///
|
||||
/// See the `align_down` free function for more information.
|
||||
#[must_use]
|
||||
pub fn aligned_down<U>(self, align: U) -> Self
|
||||
where
|
||||
U: Into<u64>,
|
||||
|
|
Loading…
Reference in New Issue