From d50d0944633719b0572ef7fa960b14044f3f1b7d Mon Sep 17 00:00:00 2001 From: Nora Date: Wed, 28 Aug 2019 15:19:25 +0200 Subject: [PATCH 1/2] make fields in SensorDataItem public --- l0dable/src/bhi160.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/l0dable/src/bhi160.rs b/l0dable/src/bhi160.rs index 6308789..688129a 100644 --- a/l0dable/src/bhi160.rs +++ b/l0dable/src/bhi160.rs @@ -160,10 +160,10 @@ impl<'a, S: SensorType> Iterator for SensorDataIter<'a, S> { #[derive(Debug, Clone)] pub struct SensorDataItem { - x: f32, - y: f32, - z: f32, - status: u8, + pub x: f32, + pub y: f32, + pub z: f32, + pub pub status: u8, } #[repr(C)] -- GitLab From ebe6acb638475392fbe5d6deb620f024ea06743c Mon Sep 17 00:00:00 2001 From: Nora Date: Wed, 28 Aug 2019 15:43:44 +0200 Subject: [PATCH 2/2] remove superfluous pub --- l0dable/src/bhi160.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l0dable/src/bhi160.rs b/l0dable/src/bhi160.rs index 688129a..3b6b8e5 100644 --- a/l0dable/src/bhi160.rs +++ b/l0dable/src/bhi160.rs @@ -163,7 +163,7 @@ pub struct SensorDataItem { pub x: f32, pub y: f32, pub z: f32, - pub pub status: u8, + pub status: u8, } #[repr(C)] -- GitLab