make clippy happy
This commit is contained in:
parent
a8bc1555c2
commit
a27dcf013f
6 changed files with 30 additions and 50 deletions
|
|
@ -9,21 +9,20 @@ use tokio::io::AsyncWriteExt;
|
|||
|
||||
use crate::{Canvas, Command, Response};
|
||||
|
||||
pub trait Parser<R>
|
||||
pub(crate) trait Parser<R>
|
||||
where
|
||||
R: std::marker::Unpin + tokio::io::AsyncBufRead,
|
||||
{
|
||||
async fn parse(&self, reader: &mut R) -> io::Result<Command>;
|
||||
}
|
||||
|
||||
pub trait IOProtocol {
|
||||
pub(crate) trait IOProtocol {
|
||||
fn change_canvas(&mut self, canvas: Canvas) -> io::Result<()>;
|
||||
}
|
||||
|
||||
pub trait Responder<W>
|
||||
pub(crate) trait Responder<W>
|
||||
where
|
||||
W: AsyncWriteExt + std::marker::Unpin,
|
||||
{
|
||||
async fn unparse(&self, response: Response, writer: &mut W) -> io::Result<()>;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue