From 254c1c3d732f9d9f4bb5868c7a02d2da2502379d Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 24 Sep 2020 21:33:16 +0200 Subject: [PATCH] remove now unneeded uom feature use_serde --- Cargo.lock | 1 - Cargo.toml | 2 +- src/steinhart_hart.rs | 3 +-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7c54454..72a077b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -492,7 +492,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8bb593f5252356bfb829112f8fca2d0982d48588d2d6bb5a92553b0dfc4c9aba" dependencies = [ "num-traits", - "serde", "typenum", ] diff --git a/Cargo.toml b/Cargo.toml index 5c58044..ff16d02 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ num-traits = { version = "0.2", default-features = false, features = ["libm"] } usb-device = "0.2" usbd-serial = "0.1" nb = "0.1" -uom = { version = "0.29", default-features = false, features = ["autoconvert", "si", "f64", "use_serde"] } +uom = { version = "0.29", default-features = false, features = ["autoconvert", "si", "f64"] } eeprom24x = "0.3" serde = { version = "1.0", default-features = false, features = ["derive"] } postcard = "0.5.1" diff --git a/src/steinhart_hart.rs b/src/steinhart_hart.rs index bcd6f41..f0b231f 100644 --- a/src/steinhart_hart.rs +++ b/src/steinhart_hart.rs @@ -8,10 +8,9 @@ use uom::si::{ ratio::ratio, thermodynamic_temperature::{degree_celsius, kelvin}, }; -use serde::{Serialize, Deserialize}; /// Steinhart-Hart equation parameters -#[derive(Clone, Debug, Serialize, Deserialize)] +#[derive(Clone, Debug)] pub struct Parameters { /// Base temperature pub t0: ThermodynamicTemperature,