fix(sender): performed code cleanup with clippy
This commit is contained in:
parent
f321b6bc6c
commit
4fb2cc1038
3 changed files with 2 additions and 10 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue