allow some dead code
This commit is contained in:
parent
7131aa1f06
commit
cf283d3eab
@ -38,7 +38,7 @@ async fn apiserver() -> io::Result<()> {
|
||||
}
|
||||
};
|
||||
|
||||
'main: loop {
|
||||
loop {
|
||||
let (socket, _remote_addr) = listener.accept().await?;
|
||||
tokio::spawn(async move {
|
||||
let mut buf = vec![0; BUFSIZE];
|
||||
|
@ -41,6 +41,7 @@ pub struct InboundDataWrapper {
|
||||
pub data: VecDeque<u8>,
|
||||
pub index: usize,
|
||||
pub started: bool,
|
||||
#[allow(dead_code)]
|
||||
pub ended: bool,
|
||||
pub escaped: Option<u8>,
|
||||
}
|
||||
@ -122,6 +123,7 @@ pub struct Message {
|
||||
}
|
||||
|
||||
impl Message {
|
||||
#[allow(dead_code)]
|
||||
pub fn new() -> Self {
|
||||
let msg = Self::default();
|
||||
return msg;
|
||||
@ -405,6 +407,7 @@ impl std::fmt::Display for Message {
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum MessageType {
|
||||
None,
|
||||
|
Loading…
Reference in New Issue
Block a user