clippy: remove unnecessary let binding

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler committed 2021-01-20 16:23:54 +01:00
1 parent 96b7483138
commit 05725ac9a4
2 files changed
+4 -9

No files matched your search

+1 -2
View File
@@ -441,8 +441,7 @@ impl Shell {
R: 'static,
{
let shell: &mut Shell = unsafe { std::mem::transmute(SHELL.unwrap()) };
let result = call(&mut *shell).await;
result
call(&mut *shell).await
}
pub async fn shell(mut self) -> Result<(), Error> {