chore: yes clippy, that is indeed an unneeded return statement
This commit is contained in:
parent
2203b5ab96
commit
b013666bfa
|
@ -361,7 +361,6 @@ impl VoiceGateway {
|
||||||
let result = VoiceGateway::handle_event(gateway_payload.data.get(), event).await;
|
let result = VoiceGateway::handle_event(gateway_payload.data.get(), event).await;
|
||||||
if result.is_err() {
|
if result.is_err() {
|
||||||
warn!("Failed to parse VOICE_READY ({})", result.err().unwrap());
|
warn!("Failed to parse VOICE_READY ({})", result.err().unwrap());
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
VOICE_BACKEND_VERSION => {
|
VOICE_BACKEND_VERSION => {
|
||||||
|
@ -374,7 +373,6 @@ impl VoiceGateway {
|
||||||
"Failed to parse VOICE_BACKEND_VERSION ({})",
|
"Failed to parse VOICE_BACKEND_VERSION ({})",
|
||||||
result.err().unwrap()
|
result.err().unwrap()
|
||||||
);
|
);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
VOICE_SESSION_DESCRIPTION => {
|
VOICE_SESSION_DESCRIPTION => {
|
||||||
|
@ -387,7 +385,6 @@ impl VoiceGateway {
|
||||||
"Failed to parse VOICE_SESSION_DESCRIPTION ({})",
|
"Failed to parse VOICE_SESSION_DESCRIPTION ({})",
|
||||||
result.err().unwrap()
|
result.err().unwrap()
|
||||||
);
|
);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
VOICE_SESSION_UPDATE => {
|
VOICE_SESSION_UPDATE => {
|
||||||
|
@ -400,7 +397,6 @@ impl VoiceGateway {
|
||||||
"Failed to parse VOICE_SESSION_UPDATE ({})",
|
"Failed to parse VOICE_SESSION_UPDATE ({})",
|
||||||
result.err().unwrap()
|
result.err().unwrap()
|
||||||
);
|
);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
VOICE_SPEAKING => {
|
VOICE_SPEAKING => {
|
||||||
|
@ -410,7 +406,6 @@ impl VoiceGateway {
|
||||||
let result = VoiceGateway::handle_event(gateway_payload.data.get(), event).await;
|
let result = VoiceGateway::handle_event(gateway_payload.data.get(), event).await;
|
||||||
if result.is_err() {
|
if result.is_err() {
|
||||||
warn!("Failed to parse VOICE_SPEAKING ({})", result.err().unwrap());
|
warn!("Failed to parse VOICE_SPEAKING ({})", result.err().unwrap());
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
VOICE_CLIENT_DISCONNECT => {
|
VOICE_CLIENT_DISCONNECT => {
|
||||||
|
@ -423,7 +418,6 @@ impl VoiceGateway {
|
||||||
"Failed to parse VOICE_CLIENT_DISCONNECT ({})",
|
"Failed to parse VOICE_CLIENT_DISCONNECT ({})",
|
||||||
result.err().unwrap()
|
result.err().unwrap()
|
||||||
);
|
);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
VOICE_CLIENT_CONNECT_FLAGS => {
|
VOICE_CLIENT_CONNECT_FLAGS => {
|
||||||
|
@ -436,7 +430,6 @@ impl VoiceGateway {
|
||||||
"Failed to parse VOICE_CLIENT_CONNECT_FLAGS ({})",
|
"Failed to parse VOICE_CLIENT_CONNECT_FLAGS ({})",
|
||||||
result.err().unwrap()
|
result.err().unwrap()
|
||||||
);
|
);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
VOICE_CLIENT_CONNECT_PLATFORM => {
|
VOICE_CLIENT_CONNECT_PLATFORM => {
|
||||||
|
@ -449,7 +442,6 @@ impl VoiceGateway {
|
||||||
"Failed to parse VOICE_CLIENT_CONNECT_PLATFORM ({})",
|
"Failed to parse VOICE_CLIENT_CONNECT_PLATFORM ({})",
|
||||||
result.err().unwrap()
|
result.err().unwrap()
|
||||||
);
|
);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
VOICE_MEDIA_SINK_WANTS => {
|
VOICE_MEDIA_SINK_WANTS => {
|
||||||
|
@ -462,7 +454,6 @@ impl VoiceGateway {
|
||||||
"Failed to parse VOICE_MEDIA_SINK_WANTS ({})",
|
"Failed to parse VOICE_MEDIA_SINK_WANTS ({})",
|
||||||
result.err().unwrap()
|
result.err().unwrap()
|
||||||
);
|
);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// We received a heartbeat from the server
|
// We received a heartbeat from the server
|
||||||
|
|
|
@ -101,10 +101,10 @@ impl UdpHandler {
|
||||||
payload: Vec::new(),
|
payload: Vec::new(),
|
||||||
};
|
};
|
||||||
|
|
||||||
return UdpHandle {
|
UdpHandle {
|
||||||
ip_discovery,
|
ip_discovery,
|
||||||
socket,
|
socket,
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The main listen task;
|
/// The main listen task;
|
||||||
|
|
Loading…
Reference in New Issue