From f8785c3f07a3bc16da8d1a8ed6a4c0add7505248 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 19 Jul 2020 15:39:08 +0800 Subject: [PATCH] fix some compilation warnings --- experiments/src/main.rs | 6 ++---- libboard_zynq/src/devc/mod.rs | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/experiments/src/main.rs b/experiments/src/main.rs index 21d3c98..ad02c85 100644 --- a/experiments/src/main.rs +++ b/experiments/src/main.rs @@ -3,8 +3,7 @@ extern crate alloc; -use alloc::{borrow::ToOwned, collections::BTreeMap, format}; -use core::task::Poll; +use alloc::collections::BTreeMap; use libasync::{ delay, smoltcp::{Sockets, TcpStream}, @@ -17,7 +16,6 @@ use libboard_zynq::{ print, println, sdio::sd_card::SdCard, smoltcp::{ - self, iface::{EthernetInterfaceBuilder, NeighborCache, Routes}, time::Instant, wire::{EthernetAddress, IpAddress, IpCidr}, @@ -112,7 +110,7 @@ pub fn main_core0() { } println!(""); } - let mut flash = flash.stop(); + let _flash = flash.stop(); let timer = libboard_zynq::timer::GlobalTimer::start(); diff --git a/libboard_zynq/src/devc/mod.rs b/libboard_zynq/src/devc/mod.rs index 41d1be4..d56755f 100644 --- a/libboard_zynq/src/devc/mod.rs +++ b/libboard_zynq/src/devc/mod.rs @@ -1,4 +1,3 @@ -use super::clocks::Clocks; use super::time::Milliseconds; use crate::slcr; use embedded_hal::timer::CountDown;