Clean up some warnings
This commit is contained in:
parent
730373a09b
commit
5b39efb79d
@ -6,7 +6,7 @@ use alloc::vec;
|
||||
use alloc::vec::Vec;
|
||||
use alloc::{borrow::ToOwned, string::String};
|
||||
|
||||
use crate::display::{self, Color, Display, Position, Rgb565};
|
||||
use crate::display::{self, Display, Position, Rgb565};
|
||||
|
||||
static OPEN_SANS: &'static [u8] = include_bytes!("./OpenSans_Condensed-Regular.ttf");
|
||||
|
||||
|
||||
@ -10,11 +10,11 @@
|
||||
|
||||
use core::mem::MaybeUninit;
|
||||
|
||||
use alloc::{boxed::Box, format, string::ToString};
|
||||
use alloc::boxed::Box;
|
||||
use esp_hal::{
|
||||
clock::CpuClock,
|
||||
delay::Delay,
|
||||
gpio::{InputConfig, Level, Output, OutputConfig},
|
||||
gpio::{Level, Output, OutputConfig},
|
||||
interrupt::software::SoftwareInterruptControl,
|
||||
main,
|
||||
spi::master::{Config, Spi},
|
||||
|
||||
@ -3,7 +3,6 @@ use esp_hal::{Blocking, delay::Delay};
|
||||
|
||||
use crate::{
|
||||
async_io::AsyncIO,
|
||||
at_commands::ATCommands,
|
||||
display::{Color, Display, Position, Rgb565},
|
||||
font::{FontRenderer, HorizontalAlignment, VerticalAlignment},
|
||||
};
|
||||
|
||||
@ -1,19 +1,13 @@
|
||||
use core::iter::repeat;
|
||||
|
||||
use alloc::{
|
||||
borrow::ToOwned,
|
||||
boxed::Box,
|
||||
format,
|
||||
string::{String, ToString},
|
||||
};
|
||||
use alloc::{borrow::ToOwned, boxed::Box, format, string::String};
|
||||
use esp_hal::time::{Duration, Instant};
|
||||
|
||||
use crate::{
|
||||
async_io::ATPromise,
|
||||
at_commands::{
|
||||
ATCommand, ATInformationCommand, CheckPinCommand, EnterPinCommand,
|
||||
ListTECharacterSetsCommand, SMSFormat, SelectSMSFormatCommand, SendSMSCommand,
|
||||
SetTECharsetCommand, StubATCommand, TECharset,
|
||||
ATCommand, ATInformationCommand, CheckPinCommand, EnterPinCommand, SMSFormat,
|
||||
SelectSMSFormatCommand, SetTECharsetCommand, TECharset,
|
||||
},
|
||||
display::{Position, Rgb565},
|
||||
font::{HorizontalAlignment, VerticalAlignment},
|
||||
@ -120,7 +114,7 @@ impl State for InitATState {
|
||||
Some(Box::new(state))
|
||||
}
|
||||
|
||||
fn draw(&self, data: &mut StateData) {}
|
||||
fn draw(&self, _: &mut StateData) {}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user