From nobody Tue Feb 10 05:46:16 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 158035470895447.30590895294188; Wed, 29 Jan 2020 19:25:08 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-365-a13yTKJEMbOTsqoo2ADzkA-1; Wed, 29 Jan 2020 22:25:03 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A2BA7107ACC5; Thu, 30 Jan 2020 03:24:57 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6E71D60BE0; Thu, 30 Jan 2020 03:24:57 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2B44818089CF; Thu, 30 Jan 2020 03:24:57 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 00U3OTO1023401 for ; Wed, 29 Jan 2020 22:24:29 -0500 Received: by smtp.corp.redhat.com (Postfix) id 11F80F18CA; Thu, 30 Jan 2020 03:24:29 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast04.extmail.prod.ext.rdu2.redhat.com [10.11.55.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0D8D2ED150 for ; Thu, 30 Jan 2020 03:24:29 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E6F3A1011E39 for ; Thu, 30 Jan 2020 03:24:28 +0000 (UTC) Received: from dodo.xh.is (dodo.xh.is [144.202.88.237]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-287-aUCmz0bHOwCAAAQVRxIsYw-4; Wed, 29 Jan 2020 22:24:25 -0500 Received: by dodo.xh.is (OpenSMTPD) with ESMTPSA id 302ec6af (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Wed, 29 Jan 2020 19:24:22 -0800 (PST) Received: from liushuyu.lan (unknown [172.22.1.1]) by hermes.aosc.io (Postfix) with ESMTPS id 33E04489A6; Thu, 30 Jan 2020 03:24:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580354707; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=zETPEjYRb2g2V4rIjRGLo6t499lui7R7bF9SYXaOyHU=; b=hN2BPZtF5ngDJDor9hqwJDKektBs2/aXKp2744j4uJFm5k5hheYK77PRR3HvM1Fq2hdl4J /XjJsL3wcJ/GyzJlJH9p9JggKdqxbWOkLLqIrbUcGF9vDskdhu6gsxZxTyks0phPIe/39e 3Jkd9IC3fQO+/bU657JyZhVF0bYT9pU= From: Zixing Liu To: libvir-list@redhat.com Subject: [libvirt-rust PATCH v3 3/4] libvirt-rust: use reference instead of moving Date: Wed, 29 Jan 2020 20:24:13 -0700 Message-Id: <20200130032414.9026-4-liushuyu@aosc.io> In-Reply-To: <20200130032414.9026-1-liushuyu@aosc.io> References: <20200130032414.9026-1-liushuyu@aosc.io> MIME-Version: 1.0 X-Spamd-Result: default: False [2.76 / 15.00] REPLY(-2.00)[] R_MISSING_CHARSET(2.50)[] MID_CONTAINS_FROM(1.00)[] BROKEN_CONTENT_TYPE(1.50)[] ASN(0.00)[asn:56300, ipnet:172.22.1.1/32, country:SG] BAYES_HAM(-0.14)[69.96%] RCPT_COUNT_THREE(0.00)[3] MAILCOW_MOO(0.00)[] FROM_HAS_DN(0.00)[] DKIM_SIGNED(0.00)[] TO_DN_ALL(0.00)[] RCVD_COUNT_TWO(0.00)[2] FROM_EQ_ENVFROM(0.00)[] MIME_GOOD(-0.10)[text/plain] TO_MATCH_ENVRCPT_ALL(0.00)[] X-Rspamd-Server: rspamd X-Rspamd-Scan-Time: 0.02 X-Rspamd-Queue-ID: 33E04489A6 X-MC-Unique: aUCmz0bHOwCAAAQVRxIsYw-4 X-MC-Unique: a13yTKJEMbOTsqoo2ADzkA-1 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 00U3OTO1023401 X-loop: libvir-list@redhat.com Cc: Zixing Liu , sahid.ferdjaoui@canonical.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Zixing Liu --- 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 { } } =20 - pub fn open_console(&self, name: &str, stream: Stream, flags: u32) -> = Result { + pub fn open_console(&self, name: &str, stream: &Stream, flags: u32) ->= Result { unsafe { let ret =3D virDomainOpenConsole( self.as_ptr(), --=20 2.25.0