From 06af0d61b2dabb4aba96df82a5bccb9497b58a60 Mon Sep 17 00:00:00 2001 From: marcelbuesing Date: Wed, 27 Nov 2019 11:07:15 +0100 Subject: [PATCH] Remove remaining pre 2018 artifacts --- src/lib.rs | 11 ++++------- src/settings.rs | 1 + 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2c9ef66..45581e1 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -44,12 +44,7 @@ //! ``` #![no_std] - -#[macro_use] -extern crate bitflags; -extern crate embedded_hal as hal; -#[macro_use] -extern crate log; +#![forbid(unsafe_code)] pub use self::settings::{ DesiredSensorSettings, GasSett, IIRFilterSize, OversamplingSetting, SensorSettings, Settings, @@ -60,11 +55,13 @@ mod calc; mod settings; use crate::calc::Calc; - use crate::hal::blocking::delay::DelayMs; use crate::hal::blocking::i2c::{Read, Write}; + use core::result; use core::time::Duration; +use embedded_hal as hal; +use log::{debug, error, info}; /// BME680 General config pub const BME680_POLL_PERIOD_MS: u8 = 10; diff --git a/src/settings.rs b/src/settings.rs index c47f55e..26fbd65 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -1,3 +1,4 @@ +use bitflags::bitflags; use core::time::Duration; /// Over-sampling settings