cleanup errors
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
jake 2022-10-22 14:05:38 -06:00
parent dbf73acb8d
commit fbab8fe5e8
3 changed files with 3 additions and 3 deletions

View File

@ -191,7 +191,6 @@ where
C: PSOCipher,
{
let buf = pkt.as_bytes();
trace!("[send buf] {:?}", buf);
let cbuf = cipher.encrypt(&buf)?;
socket.write_all(&cbuf).await?;
Ok(())

View File

@ -69,9 +69,10 @@ pub enum ClientRemovalError {
}
#[derive(Error, Debug, PartialEq, Eq)]
#[error("get clients")]
pub enum GetClientsError {
#[error("invalid client")]
InvalidClient,
#[error("invalid area")]
InvalidArea,
}

View File

@ -104,7 +104,7 @@ pub enum ShipError {
InvalidSlot(ClientId, u32),
#[error("too many clients")]
TooManyClients,
#[error("client error location {0}")]
#[error("client location {0}")]
ClientLocationError(ClientLocationError),
#[error("maps error {0}")]
MapsError(#[from] MapsError),