Skip to content

Commit ae72b01

Browse files
andreeaflorescuacatangiu
authored andcommitted
cpuid: removed unnecessary pub
Signed-off-by: Andreea Florescu <[email protected]>
1 parent dbd891e commit ae72b01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpuid/src/brand_string.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ impl BrandString {
119119
/// Sets the value for the given leaf/register pair
120120
/// leaf must be between 0x80000002 and 0x80000004
121121
#[inline]
122-
pub fn set_reg_for_leaf(&mut self, leaf: u32, reg: Reg, val: u32) {
122+
fn set_reg_for_leaf(&mut self, leaf: u32, reg: Reg, val: u32) {
123123
// It's ok not to validate parameters here, leaf and reg should
124124
// both be compile-time constants. If there's something wrong with them,
125125
// that's a programming error and we should panic anyway.
@@ -128,7 +128,7 @@ impl BrandString {
128128

129129
/// Get an immutable u8 slice view into the brand string buffer
130130
#[inline]
131-
pub fn as_bytes(&self) -> &[u8] {
131+
fn as_bytes(&self) -> &[u8] {
132132
// This is actually safe, because self.reg_buf has a fixed, known size,
133133
// and also there's no risk of misalignment, since we're downgrading
134134
// alignment constraints from dword to byte.
@@ -137,7 +137,7 @@ impl BrandString {
137137

138138
/// Get a mutable u8 slice view into the brand string buffer
139139
#[inline]
140-
pub fn as_bytes_mut(&mut self) -> &mut [u8] {
140+
fn as_bytes_mut(&mut self) -> &mut [u8] {
141141
unsafe {
142142
slice::from_raw_parts_mut(self.reg_buf.as_mut_ptr() as *mut u8, Self::REG_BUF_SIZE * 4)
143143
}

0 commit comments

Comments
 (0)