style: Clean up backend unused warnings

This commit is contained in:
spinline
2026-01-30 01:00:36 +03:00
parent 8216f0556a
commit 6424acaa08
4 changed files with 9 additions and 13 deletions

View File

@@ -1,11 +1,13 @@
use bytes::{BufMut, Bytes, BytesMut};
use bytes::Bytes;
use std::collections::HashMap;
use tokio::io::{AsyncReadExt, AsyncWriteExt};
use tokio::net::UnixStream;
#[derive(Debug)]
pub enum ScgiError {
#[allow(dead_code)]
Io(std::io::Error),
#[allow(dead_code)]
Protocol(String),
}
@@ -30,7 +32,7 @@ impl ScgiRequest {
}
}
pub fn header(mut self, key: &str, value: &str) -> Self {
pub fn _header(mut self, key: &str, value: &str) -> Self {
self.headers.insert(key.to_string(), value.to_string());
self
}