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