Update RpcServer::new_vsock calls for new return
Returns the assigned port along with the server now.
We do not take advantage of it yet.
Test: atest vm_accessor_test
Bug: 372381104
Change-Id: Ia32c5ca4a19cd6e39c3fc94c2d3a1f43a4a32bb5
diff --git a/libs/libvm_payload/src/lib.rs b/libs/libvm_payload/src/lib.rs
index 40f7b79..eb81752 100644
--- a/libs/libvm_payload/src/lib.rs
+++ b/libs/libvm_payload/src/lib.rs
@@ -144,7 +144,7 @@
let service = unsafe { new_spibinder(service) };
if let Some(service) = service {
match RpcServer::new_vsock(service, libc::VMADDR_CID_HOST, port) {
- Ok(server) => {
+ Ok((server, _)) => {
if let Some(on_ready) = on_ready {
// SAFETY: We're calling the callback with the parameter specified within the
// allowed lifetime.