[libvirt] [rust PATCH v2 4/5] libvirt-rust: use reference instead of moving
Zixing Liu
liushuyu at aosc.io
Tue Dec 24 07:12:54 UTC 2019
Signed-off-by: Zixing Liu <liushuyu at aosc.io>
---
src/domain.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/domain.rs b/src/domain.rs
index 40a18d8..61ca411 100644
--- a/src/domain.rs
+++ b/src/domain.rs
@@ -1546,7 +1546,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(),
string_to_c_chars!(name),
--
2.24.1
More information about the libvir-list
mailing list