mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-23 06:05:21 +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:
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(),
|
||||
|
Loading…
Reference in New Issue
Block a user