Skip to content

Commit f6239c0

Browse files
committed
FIX: Layout, make all the constructors pub(crate)
They were previously pub, just because we didn't have the pub(crate) feature yet.
1 parent 6953d73 commit f6239c0

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/layout/mod.rs

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,24 @@ impl Layout {
2525
pub(crate) fn flag(self) -> u32 {
2626
self.0
2727
}
28-
}
2928

30-
impl Layout {
31-
#[doc(hidden)]
3229
#[inline(always)]
33-
pub fn one_dimensional() -> Layout {
30+
pub(crate) fn one_dimensional() -> Layout {
3431
Layout(CORDER | FORDER)
3532
}
36-
#[doc(hidden)]
33+
3734
#[inline(always)]
38-
pub fn c() -> Layout {
35+
pub(crate) fn c() -> Layout {
3936
Layout(CORDER)
4037
}
41-
#[doc(hidden)]
38+
4239
#[inline(always)]
43-
pub fn f() -> Layout {
40+
pub(crate) fn f() -> Layout {
4441
Layout(FORDER)
4542
}
43+
4644
#[inline(always)]
47-
#[doc(hidden)]
48-
pub fn none() -> Layout {
45+
pub(crate) fn none() -> Layout {
4946
Layout(0)
5047
}
5148
}

0 commit comments

Comments
 (0)