Fix clippy warnings (#236)

This commit is contained in:
Gnome!
2024-04-02 08:57:47 +01:00
committed by GitHub
parent 1d5b25965b
commit 5bbe80f20c
28 changed files with 35 additions and 63 deletions

View File

@@ -25,8 +25,7 @@ pub enum Error {
IllegalVoicePacket,
InterconnectFailure(Recipient),
Io(IoError),
Opus(OpusError),
Ws(WsError),
Other,
}
impl Error {
@@ -66,8 +65,8 @@ impl From<IoError> for Error {
}
impl From<OpusError> for Error {
fn from(e: OpusError) -> Error {
Error::Opus(e)
fn from(_: OpusError) -> Error {
Error::Other
}
}
@@ -97,7 +96,7 @@ impl From<SendError<UdpRxMessage>> for Error {
}
impl From<WsError> for Error {
fn from(e: WsError) -> Error {
Error::Ws(e)
fn from(_: WsError) -> Error {
Error::Other
}
}