Skip to content

Commit c0dfeda

Browse files
committed
Remove unused imports
1 parent 09a7513 commit c0dfeda

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/bin/async-await.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,10 @@ use rt::{entry, exception, ExceptionFrame};
3434
use sh::hio::{self, HStdout};
3535
use smoltcp::{
3636
socket::{
37-
Socket, SocketSet, TcpSocket, TcpSocketBuffer, UdpPacketMetadata, UdpSocket,
38-
UdpSocketBuffer, IcmpSocket, IcmpEndpoint,
37+
Socket, TcpSocket, TcpSocketBuffer, UdpPacketMetadata, UdpSocket, UdpSocketBuffer,
3938
},
4039
time::Instant,
41-
wire::{EthernetAddress, IpAddress, IpEndpoint, Ipv4Address},
40+
wire::{EthernetAddress, IpEndpoint},
4241
};
4342
use stm32f7::stm32f7x6::{
4443
CorePeripherals, Interrupt, Peripherals, ETHERNET_DMA, ETHERNET_MAC, RCC, SAI2, SYSCFG,
@@ -492,8 +491,8 @@ where
492491
}
493492

494493
async fn run(mut self) {
495-
use smoltcp::wire::{EthernetAddress, Ipv4Address, IpCidr};
496-
use smoltcp::socket::{SocketSet, RawSocketBuffer, RawPacketMetadata, IcmpSocketBuffer, IcmpPacketMetadata};
494+
use smoltcp::wire::{Ipv4Address, IpCidr};
495+
use smoltcp::socket::{SocketSet, RawSocketBuffer, RawPacketMetadata};
497496
use smoltcp::dhcp::Dhcpv4Client;
498497

499498
let mut ethernet_interface = ethernet::EthernetDevice::new(

src/bin/polling.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ use smoltcp::{
3232
wire::{EthernetAddress, IpEndpoint, Ipv4Address, IpCidr},
3333
dhcp::Dhcpv4Client,
3434
};
35-
use stm32f7::stm32f7x6::{self as device, CorePeripherals, Interrupt, Peripherals};
35+
use stm32f7::stm32f7x6::{CorePeripherals, Interrupt, Peripherals};
3636
use stm32f7_discovery::{
3737
ethernet,
3838
gpio::{GpioPort, InputPin, OutputPin},

src/init/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
//! Provides various hardware initialization functions.
22
3-
use crate::i2c::{self, I2C, I2cTrait};
3+
use crate::i2c::{self, I2C};
44
use crate::lcd::{self, Lcd};
55
use crate::system_clock;
6-
use stm32f7::stm32f7x6::{self as device, i2c1, FLASH, FMC, LTDC, PWR, RCC, SAI2, SYST};
6+
use stm32f7::stm32f7x6::{self as device, FLASH, FMC, LTDC, PWR, RCC, SAI2, SYST};
77

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

0 commit comments

Comments
 (0)