From d6a2f48b32a6eff782300f371c283a87df127da4 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Thu, 16 Sep 2021 19:36:46 +0000 Subject: [PATCH] vmm: device_manager: Make PtyPair implement Clone The clone method for PtyPair should have been an impl of the Clone trait but the method ended up not being used. Future work will make use of the trait however so correct the missing trait implementation. Signed-off-by: William Douglas --- vmm/src/device_manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index b895380cb..055d9e73d 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -766,7 +766,7 @@ pub struct PtyPair { pub path: PathBuf, } -impl PtyPair { +impl Clone for PtyPair { fn clone(&self) -> Self { PtyPair { main: self.main.try_clone().unwrap(),