Skip to content

Commit

Permalink
refactor: remove obsolete #[allow(private_interfaces)]
Browse files Browse the repository at this point in the history
  • Loading branch information
bluurryy committed Aug 24, 2024
1 parent 89a241d commit 3fa2f4e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ pub struct MinimumAlignment<const ALIGNMENT: usize>;
mod supported_minimum_alignment {
use crate::ArrayLayout;

#[allow(private_interfaces)]
pub trait Sealed {
/// We'd be fine with just an [`core::ptr::Alignment`], but that's not stable.
const LAYOUT: ArrayLayout;
Expand All @@ -394,7 +393,6 @@ pub trait SupportedMinimumAlignment: supported_minimum_alignment::Sealed + Copy
macro_rules! supported_alignments {
($($i:literal)*) => {
$(
#[allow(private_interfaces)]
impl supported_minimum_alignment::Sealed for MinimumAlignment<$i> {
const LAYOUT: ArrayLayout = match ArrayLayout::from_size_align(0, $i) {
Ok(layout) => layout,
Expand Down

0 comments on commit 3fa2f4e

Please sign in to comment.