From 4b0652baea4b2cbe340c72efe7476a921a040600 Mon Sep 17 00:00:00 2001 From: Sean Bruton Date: Tue, 24 Dec 2019 13:42:17 -0600 Subject: [PATCH] skip serializing phandom data Signed-off-by: Sean Bruton --- Cargo.toml | 2 +- src/lib.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 462b63e..eadb09e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bme280" -version = "0.2.0" +version = "0.2.1" authors = ["Sean Bruton "] description = "A rust device driver for the Bosch BME280 temperature, humidity, and atmospheric pressure sensor and the Bosch BMP280 temperature, and atmospheric pressure sensor" repository = "https://github.com/uber-foo/bme280-rs" diff --git a/src/lib.rs b/src/lib.rs index 945ac9a..6b142e1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -195,6 +195,7 @@ pub struct Measurements { pub pressure: f32, /// percent relative humidity (`0` with BMP280) pub humidity: f32, + #[cfg_attr(feature = "serde", serde(skip))] _e: PhantomData, }