mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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 <william.douglas@intel.com>
This commit is contained in:
committed by
Rob Bradford
parent
c313bcbfd4
commit
d6a2f48b32
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user