From 258a1723567c0d247d665b2f08d2bebca85d819d Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Sun, 28 Oct 2018 11:57:31 +0100 Subject: [PATCH] Restructure ds323x module --- src/{ds323x.rs => ds323x/datetime.rs} | 2 +- src/ds323x/mod.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename src/{ds323x.rs => ds323x/datetime.rs} (97%) create mode 100644 src/ds323x/mod.rs diff --git a/src/ds323x.rs b/src/ds323x/datetime.rs similarity index 97% rename from src/ds323x.rs rename to src/ds323x/datetime.rs index 7cd3d00..dfbae1e 100644 --- a/src/ds323x.rs +++ b/src/ds323x/datetime.rs @@ -3,7 +3,7 @@ #![deny(missing_docs)] extern crate embedded_hal as hal; -use super::{ Ds323x, Register, Error }; +use super::super::{ Ds323x, Register, Error }; use interface::{ ReadRegister, WriteRegister }; impl Ds323x diff --git a/src/ds323x/mod.rs b/src/ds323x/mod.rs new file mode 100644 index 0000000..cb3db97 --- /dev/null +++ b/src/ds323x/mod.rs @@ -0,0 +1 @@ +mod datetime;