Re: [rust PATCH v2 4/5] libvirt-rust: use reference instead of moving

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 24, 2019 at 12:12:54AM -0700, Zixing Liu wrote:
> Signed-off-by: Zixing Liu <liushuyu@xxxxxxx>
> ---
>  src/domain.rs | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@xxxxxxxxxxxxx>

> 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


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux