mirror of
https://github.com/mat-1/azalea.git
synced 2024-09-19 14:42:32 +00:00
remove unnecessary map_err
This commit is contained in:
parent
73be589e7f
commit
7feee2954d
2 changed files with 4 additions and 7 deletions
|
@ -95,10 +95,7 @@ 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)?;
|
||||
self.writer.outgoing_packets_sender.send(raw_packet)?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue