mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix warnings
This commit is contained in:
parent
dbd7ad1770
commit
0a94e80504
2 changed files with 6 additions and 5 deletions
|
|
@ -62,6 +62,9 @@ threadpool = "1.8.1"
|
|||
# a *lot* of useful packages are chasing this devil.
|
||||
rand = {version = "0.8.5", features = ["getrandom"]}
|
||||
|
||||
# for ditherpunk testing
|
||||
png = {version = "0.17.5", optional = true}
|
||||
|
||||
# for the curve25519 tests
|
||||
# hardware acceleration adaptations are inserted into a fork of the main branch.
|
||||
hex = {version = "0.4.3", default-features = false, features = []}
|
||||
|
|
@ -92,5 +95,5 @@ benchmarks = [] # adds the benchmark routines. Left off normally to free up code
|
|||
aestests = [] # adds AES tests
|
||||
tts = [] # adds text to speech plugin
|
||||
pddbtest = []
|
||||
ditherpunk = []
|
||||
ditherpunk = ["png"]
|
||||
default = [] # "debugprint"
|
||||
|
|
|
|||
|
|
@ -17,9 +17,7 @@ use dns::Dns; // necessary to work around https://github.com/rust-lang/rust/issu
|
|||
#[cfg(feature="ditherpunk")]
|
||||
use std::str::FromStr;
|
||||
#[cfg(feature="ditherpunk")]
|
||||
use std::convert::TryInto;
|
||||
|
||||
use gam::{Img, RGB};
|
||||
use gam::Img;
|
||||
|
||||
pub struct NetCmd {
|
||||
callback_id: Option<u32>,
|
||||
|
|
@ -368,7 +366,7 @@ impl<'a> ShellCmdApi<'a> for NetCmd {
|
|||
let mut buf = vec![0; reader.output_buffer_size()];
|
||||
let info = reader.next_frame(&mut buf).expect("failed to decode png");
|
||||
|
||||
let (width, height) = (info.width, info.height);
|
||||
let (width, _height) = (info.width, info.height);
|
||||
let img = Img::new(buf, width as usize);
|
||||
|
||||
modals.show_image(&img).expect("show image modal failed");
|
||||
|
|
|
|||
Loading…
Reference in a new issue