relax and de-clutter let_underscore_must_use
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
100c6f572b
commit
23a9055199
9 changed files with 5 additions and 29 deletions
|
@ -45,7 +45,6 @@ impl Console {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::let_underscore_must_use)]
|
||||
pub async fn start(self: &Arc<Self>) {
|
||||
let mut worker_join = self.worker_join.lock().expect("locked");
|
||||
if worker_join.is_none() {
|
||||
|
@ -54,7 +53,6 @@ impl Console {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(clippy::let_underscore_must_use)]
|
||||
pub async fn close(self: &Arc<Self>) {
|
||||
self.interrupt();
|
||||
let Some(worker_join) = self.worker_join.lock().expect("locked").take() else {
|
||||
|
@ -113,7 +111,6 @@ impl Console {
|
|||
self.worker_join.lock().expect("locked").take();
|
||||
}
|
||||
|
||||
#[allow(clippy::let_underscore_must_use)]
|
||||
async fn readline(self: &Arc<Self>) -> Result<ReadlineEvent, ReadlineError> {
|
||||
let _suppression = log::Suppress::new(&services().server);
|
||||
|
||||
|
@ -138,7 +135,6 @@ impl Console {
|
|||
result
|
||||
}
|
||||
|
||||
#[allow(clippy::let_underscore_must_use)]
|
||||
async fn handle(self: Arc<Self>, line: String) {
|
||||
if line.trim().is_empty() {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue