fix warnings

This commit is contained in:
Arkitu 2025-04-08 21:54:40 +02:00
parent 317b8084e0
commit 14ce0ebf7e

View File

@ -7,7 +7,7 @@ use pico_website::unwrap;
use embedded_io_async::Write as _;
use core::fmt::Write;
use crate::game::{self, GameClient, Team};
use crate::game::{GameClient, Team};
#[embassy_executor::task(pool_size = 2)]
pub async fn listen_task(stack: embassy_net::Stack<'static>, team: Team, port: u16) {
@ -54,12 +54,12 @@ pub async fn listen_task(stack: embassy_net::Stack<'static>, team: Team, port: u
};
let mut headers: &[u8] = &buf[..n];
let mut content: &[u8] = &[];
let mut _content: &[u8] = &[];
for i in 0..(n - 1) {
if &buf[i..i + 1] == b"\r\n" {
headers = &buf[0..i];
if i + 2 < n {
content = &buf[i + 2..n];
_content = &buf[i + 2..n];
}
}
}