Ran cargo fmt
This commit is contained in:
parent
1d533b2104
commit
79b1f52102
6 changed files with 44 additions and 44 deletions
|
|
@ -1,8 +1,8 @@
|
|||
use bus::{ActiveFourWire, ActiveThreeWire, Bus, FourWire, ThreeWire};
|
||||
use device::Device;
|
||||
use embedded_hal::digital::v2::OutputPin;
|
||||
use embedded_hal::spi::FullDuplex;
|
||||
use network::Network;
|
||||
use device::Device;
|
||||
|
||||
pub struct InactiveDevice<SpiBus: Bus, NetworkImpl: Network> {
|
||||
bus: SpiBus,
|
||||
|
|
@ -15,7 +15,9 @@ impl<SpiBus: Bus, NetworkImpl: Network> InactiveDevice<SpiBus, NetworkImpl> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<ChipSelect: OutputPin, NetworkImpl: Network> InactiveDevice<FourWire<ChipSelect>, NetworkImpl> {
|
||||
impl<ChipSelect: OutputPin, NetworkImpl: Network>
|
||||
InactiveDevice<FourWire<ChipSelect>, NetworkImpl>
|
||||
{
|
||||
pub fn activate<Spi: FullDuplex<u8>>(
|
||||
self,
|
||||
spi: Spi,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue