[libvirt-rust PATCH v3 3/4] libvirt-rust: use reference instead of moving

Zixing Liu posted 4 patches 6 years ago
[libvirt-rust PATCH v3 3/4] libvirt-rust: use reference instead of moving
Posted by Zixing Liu 6 years ago
Signed-off-by: Zixing Liu <liushuyu@aosc.io>
---
 src/domain.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/domain.rs b/src/domain.rs
index 121d0f9..5de66c6 100644
--- a/src/domain.rs
+++ b/src/domain.rs
@@ -1644,7 +1644,7 @@ impl Domain {
         }
     }
 
-    pub fn open_console(&self, name: &str, stream: Stream, flags: u32) -> Result<u32, Error> {
+    pub fn open_console(&self, name: &str, stream: &Stream, flags: u32) -> Result<u32, Error> {
         unsafe {
             let ret = virDomainOpenConsole(
                 self.as_ptr(),
-- 
2.25.0