fix(sender): performed code cleanup with clippy

This commit is contained in:
Patryk Hegenberg 2024-05-01 22:56:44 +02:00
parent f321b6bc6c
commit 4fb2cc1038
3 changed files with 2 additions and 10 deletions

View file

@ -110,13 +110,6 @@ struct Context {
task: Option<JoinHandle<()>>,
}
impl Context {
async fn clean_up(&mut self) {
if let Some(task) = &self.task {
task.abort();
}
}
}
/// This function is called when the client receives a create room packet
/// from the server. The function is responsible for printing a URL to the
/// console that the user can use to join the room.