Skip to content

Commit 4e4a607

Browse files
committed
Hiding and formatting.
1 parent 43d1b44 commit 4e4a607

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/lps25h.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub const REG_TEMP_OUT_L: u8 = 0x2b;
1515
pub const REG_TEMP_OUT_H: u8 = 0x2c;
1616
pub const REG_FIFO_CTRL: u8 = 0x2e;
1717

18-
pub struct Lps25h<T: I2CDevice + Sized> {
18+
pub(crate) struct Lps25h<T: I2CDevice + Sized> {
1919
i2cdev: T,
2020
}
2121

src/lsm9ds1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//! a C wrapper of the `RTIMULib` C++ API. We then call that unsafe C wrapper
1010
//! here, ensuring that any memory allocations were undone on drop.
1111
12-
use super::{Angle, Orientation, Vector3D, ImuData};
12+
use super::{Angle, ImuData, Orientation, Vector3D};
1313
use libc;
1414

1515
enum RTIMULibContext {}
@@ -147,7 +147,7 @@ impl<'a> Lsm9ds1<'a> {
147147
} else {
148148
None
149149
},
150-
compass: if temp.compass_valid != 0{
150+
compass: if temp.compass_valid != 0 {
151151
Some(Vector3D {
152152
x: temp.compass.x,
153153
y: temp.compass.y,

src/lsm9ds1_dummy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub enum Error {
1010
RTIMULibError,
1111
}
1212

13-
pub struct Lsm9ds1<'a> {
13+
pub(crate) struct Lsm9ds1<'a> {
1414
phantom: PhantomData<&'a u32>,
1515
}
1616

0 commit comments

Comments
 (0)