From 43bc194f25ffbb5a5abb6847efddf442a0e0d2ef Mon Sep 17 00:00:00 2001 From: rowan Date: Wed, 5 Mar 2025 20:01:18 -0600 Subject: [PATCH] oops, remove unnecessary -o --- src/fs/mount.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/fs/mount.rs b/src/fs/mount.rs index d351476..9ced5f3 100644 --- a/src/fs/mount.rs +++ b/src/fs/mount.rs @@ -876,7 +876,7 @@ impl Display for Mount { write!(f, "mount")?; if !self.options.is_empty() { - write!(f, " -o {}", self.options)?; + write!(f, " {}", self.options)?; } write!(f, " {}", self.source)?; @@ -1260,12 +1260,15 @@ mod tests { #[test] fn mount_display() { - let mnt = Mount::new( + let mut mnt = Mount::new( DeviceId::Label("awawa".into()), "/mnt", MountOptions::default(), ); assert_eq!(mnt.to_string(), "mount LABEL=awawa /mnt"); + + mnt.options.push(MountOption::All); + assert_eq!(mnt.to_string(), "mount --all LABEL=awawa /mnt"); } }