Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-opp committed Jan 26, 2019
1 parent 09a7513 commit c0dfeda
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
9 changes: 4 additions & 5 deletions src/bin/async-await.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ use rt::{entry, exception, ExceptionFrame};
use sh::hio::{self, HStdout};
use smoltcp::{
socket::{
Socket, SocketSet, TcpSocket, TcpSocketBuffer, UdpPacketMetadata, UdpSocket,
UdpSocketBuffer, IcmpSocket, IcmpEndpoint,
Socket, TcpSocket, TcpSocketBuffer, UdpPacketMetadata, UdpSocket, UdpSocketBuffer,
},
time::Instant,
wire::{EthernetAddress, IpAddress, IpEndpoint, Ipv4Address},
wire::{EthernetAddress, IpEndpoint},
};
use stm32f7::stm32f7x6::{
CorePeripherals, Interrupt, Peripherals, ETHERNET_DMA, ETHERNET_MAC, RCC, SAI2, SYSCFG,
Expand Down Expand Up @@ -492,8 +491,8 @@ where
}

async fn run(mut self) {
use smoltcp::wire::{EthernetAddress, Ipv4Address, IpCidr};
use smoltcp::socket::{SocketSet, RawSocketBuffer, RawPacketMetadata, IcmpSocketBuffer, IcmpPacketMetadata};
use smoltcp::wire::{Ipv4Address, IpCidr};
use smoltcp::socket::{SocketSet, RawSocketBuffer, RawPacketMetadata};
use smoltcp::dhcp::Dhcpv4Client;

let mut ethernet_interface = ethernet::EthernetDevice::new(
Expand Down
2 changes: 1 addition & 1 deletion src/bin/polling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use smoltcp::{
wire::{EthernetAddress, IpEndpoint, Ipv4Address, IpCidr},
dhcp::Dhcpv4Client,
};
use stm32f7::stm32f7x6::{self as device, CorePeripherals, Interrupt, Peripherals};
use stm32f7::stm32f7x6::{CorePeripherals, Interrupt, Peripherals};
use stm32f7_discovery::{
ethernet,
gpio::{GpioPort, InputPin, OutputPin},
Expand Down
4 changes: 2 additions & 2 deletions src/init/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//! Provides various hardware initialization functions.
use crate::i2c::{self, I2C, I2cTrait};
use crate::i2c::{self, I2C};
use crate::lcd::{self, Lcd};
use crate::system_clock;
use stm32f7::stm32f7x6::{self as device, i2c1, FLASH, FMC, LTDC, PWR, RCC, SAI2, SYST};
use stm32f7::stm32f7x6::{self as device, FLASH, FMC, LTDC, PWR, RCC, SAI2, SYST};

pub use self::pins::init as pins;

Expand Down

0 comments on commit c0dfeda

Please sign in to comment.