silence warnings: unused proto field, dead upstream_id field

This commit is contained in:
2026-08-13 09:26:32 +00:00
parent bf2915d8bd
commit a700514849
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ async fn handle_frame(
}; };
let _ = tx.send((src, manifest.encode())).await; let _ = tx.send((src, manifest.encode())).await;
} }
Frame::Open { upstream_id, proto } => { Frame::Open { upstream_id, proto: _ } => {
let upstream = table.get(upstream_id); let upstream = table.get(upstream_id);
match upstream { match upstream {
Some(upstream) => { Some(upstream) => {
+1
View File
@@ -129,6 +129,7 @@ impl RecvState {
} }
#[derive(Clone)] #[derive(Clone)]
#[allow(dead_code)]
pub struct SessionHandle { pub struct SessionHandle {
pub upstream_id: u8, pub upstream_id: u8,
pub proto: u8, pub proto: u8,