aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src')
-rw-r--r--azalea-client/src/raw_connection.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/azalea-client/src/raw_connection.rs b/azalea-client/src/raw_connection.rs
index 53abd881..9f7a85f1 100644
--- a/azalea-client/src/raw_connection.rs
+++ b/azalea-client/src/raw_connection.rs
@@ -94,11 +94,8 @@ impl RawConnection {
}
}
- pub fn write_raw_packet(&self, raw_packet: Vec<u8>) -> Result<(), WritePacketError> {
- self.writer
- .outgoing_packets_sender
- .send(raw_packet)
- .map_err(WritePacketError::from)?;
+ pub fn write_raw_packet(&self, raw_packet: Vec<u8>) -> Result<(), WritePacketError> {
+ self.writer.outgoing_packets_sender.send(raw_packet)?;
Ok(())
}
@@ -114,7 +111,7 @@ impl RawConnection {
) -> Result<(), WritePacketError> {
let raw_packet = serialize_packet(&packet)?;
self.write_raw_packet(raw_packet)?;
-
+
Ok(())
}