Make write() consume the objects.

This commit is contained in:
2022-05-14 20:37:18 -07:00
parent c8279cfc5f
commit 277125e1a0
9 changed files with 15 additions and 14 deletions

View File

@@ -59,7 +59,7 @@ impl ServerAuthResponse {
}
pub async fn write<W: AsyncWrite + Send + Unpin>(
&self,
self,
w: &mut W,
) -> Result<(), ServerAuthResponseWriteError> {
w.write_all(&[1]).await?;