From 20fe5e17817a1e006dfd133443a06fda1f9e3d65 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Tue, 14 Jan 2020 15:18:09 +0100 Subject: [PATCH] sys: derive Clone and Debug for mount_info::Entry and MountInfo Signed-off-by: Wolfgang Bumiller --- proxmox-sys/src/linux/procfs/mountinfo.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxmox-sys/src/linux/procfs/mountinfo.rs b/proxmox-sys/src/linux/procfs/mountinfo.rs index efaa398a..8bca8457 100644 --- a/proxmox-sys/src/linux/procfs/mountinfo.rs +++ b/proxmox-sys/src/linux/procfs/mountinfo.rs @@ -84,6 +84,7 @@ impl Tag { } } +#[derive(Clone, Debug)] pub struct Entry { /// unique identifier of the mount (may be reused after being unmounted) pub id: MountId, @@ -163,6 +164,7 @@ impl Entry { // TODO: Add some structure to this? Eg. sort by parent/child relation? Make a tree? /// Mount info found in `/proc/PID/mountinfo`. +#[derive(Clone, Debug)] pub struct MountInfo { entries: BTreeMap, }