Skip to content

Commit

Permalink
skip serializing phandom data
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Bruton <sean@unnecessary.engineering>
  • Loading branch information
sbruton committed Dec 24, 2019
1 parent 65f0d1c commit 4b0652b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bme280"
version = "0.2.0"
version = "0.2.1"
authors = ["Sean Bruton <sean@uberfoo.net>"]
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"
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ pub struct Measurements<E> {
pub pressure: f32,
/// percent relative humidity (`0` with BMP280)
pub humidity: f32,
#[cfg_attr(feature = "serde", serde(skip))]
_e: PhantomData<E>,
}

Expand Down

0 comments on commit 4b0652b

Please sign in to comment.