From b086f3086e89300b6ce61f9cedeaf0cc380ff726 Mon Sep 17 00:00:00 2001 From: Diego Barrios Romero Date: Thu, 2 Jan 2025 08:31:08 +0100 Subject: [PATCH] Fix formatting --- src/ds3234.rs | 2 +- src/interface.rs | 5 +---- tests/common/mod.rs | 4 +++- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/ds3234.rs b/src/ds3234.rs index 3147dec..9b41147 100644 --- a/src/ds3234.rs +++ b/src/ds3234.rs @@ -2,7 +2,7 @@ use crate::interface::{SpiInterface, WriteData}; use crate::{ic, BitFlags, Ds323x, Error, Register, TempConvRate, CONTROL_POR_VALUE}; use core::marker::PhantomData; -use embedded_hal::{spi, digital::OutputPin}; +use embedded_hal::{digital::OutputPin, spi}; impl Ds323x, ic::DS3234> where diff --git a/src/interface.rs b/src/interface.rs index f097b92..a9af70a 100644 --- a/src/interface.rs +++ b/src/interface.rs @@ -1,10 +1,7 @@ //! I2C/SPI interfaces use crate::{private, Error, DEVICE_ADDRESS}; -use embedded_hal::{ - i2c, spi, - digital::OutputPin, -}; +use embedded_hal::{digital::OutputPin, i2c, spi}; /// I2C interface #[derive(Debug, Default)] diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 7e9476c..1db8cb8 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -98,7 +98,9 @@ pub fn destroy_ds3232(dev: Ds323x, ic::DS3232>) dev.destroy_ds3232().done(); } -pub fn destroy_ds3234(dev: Ds323x, DummyOutputPin>, ic::DS3234>) { +pub fn destroy_ds3234( + dev: Ds323x, DummyOutputPin>, ic::DS3234>, +) { dev.destroy_ds3234().0.done(); }