chore: fix whitespace and warning

This commit is contained in:
bunnie 2022-08-11 03:11:38 +08:00
parent cfa65a3a72
commit 548f4b059d

View file

@ -294,7 +294,7 @@ impl<'a> ShellCmdApi<'a> for NetCmd {
} }
#[cfg(feature="ditherpunk")] #[cfg(feature="ditherpunk")]
"image" => { "image" => {
if let Some(mut url) = tokens.next() { if let Some(url) = tokens.next() {
match url.split_once('/') { match url.split_once('/') {
Some((host, path)) => { Some((host, path)) => {
match TcpStream::connect((host, 80)) { match TcpStream::connect((host, 80)) {