mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
block: remove unnecessary drop
Clippy warns that this drop is not doing anything: error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. The code compiles without the drop, and resizing still works, so just remove it. BUG=None TEST=bin/clippy TEST=`crosvm disk resize 1 $((10*1024*1024*1024)) $SOCKET` Change-Id: I1abf26fcd517a76b3007b70eb73545812a0dd79a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2324062 Tested-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org> Reviewed-by: Dylan Reid <dgreid@chromium.org> Commit-Queue: Dylan Reid <dgreid@chromium.org>
This commit is contained in:
parent
71b6203652
commit
5f3931874b
1 changed files with 0 additions and 1 deletions
|
@ -441,7 +441,6 @@ impl Worker {
|
|||
}
|
||||
};
|
||||
|
||||
drop(control_socket);
|
||||
let resp = match req {
|
||||
DiskControlCommand::Resize { new_size } => {
|
||||
needs_config_interrupt = true;
|
||||
|
|
Loading…
Reference in a new issue