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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue