relax and de-clutter let_underscore_must_use
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user