Fix build for Rust 1.31.0

pull/4/head
Diego Barrios Romero 2020-05-02 12:11:22 +02:00
parent 3425e28959
commit 1b13f482ae
1 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,9 @@ use common::{
DEVICE_ADDRESS as DEV_ADDR,
};
extern crate ds323x;
use ds323x::{Error, Hours, NaiveDate, NaiveTime, Rtcc};
use ds323x::{Error, Hours, NaiveDate, NaiveTime};
#[allow(unused)] // Rust 1.31.0 is confused due to the macros
use ds323x::Rtcc;
macro_rules! read_set_param_write_two_test {
($name:ident, $method:ident, $value:expr, $register:ident, $binary_value1_read:expr, $bin1:expr, $bin2:expr) => {