From 867e635cd6880ee3d65680e1c431b805d9722bcf Mon Sep 17 00:00:00 2001 From: electricboogie <32370782+kimono-koans@users.noreply.github.com> Date: Wed, 20 Mar 2024 15:55:04 -0500 Subject: [PATCH] Cleanup --- src/parse/snaps.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parse/snaps.rs b/src/parse/snaps.rs index 89564d7e..4687e81a 100644 --- a/src/parse/snaps.rs +++ b/src/parse/snaps.rs @@ -98,13 +98,13 @@ impl MapOfSnaps { opt_debug: bool, ) -> Vec { const BTRFS_COMMAND_REQUIRES_ROOT: &str = - "User must have super user permissions to determine the location of btrfs snapshots"; + "btrfs mounts detected. User must have super user permissions to determine the location of btrfs snapshots"; - if let Err(err) = user_has_effective_root(&BTRFS_COMMAND_REQUIRES_ROOT) { + if let Err(_err) = user_has_effective_root(&BTRFS_COMMAND_REQUIRES_ROOT) { static USER_HAS_ROOT_WARNING: Once = Once::new(); USER_HAS_ROOT_WARNING.call_once(|| { - eprintln!("WARN: {}", err.to_string()); + eprintln!("WARN: {}", BTRFS_COMMAND_REQUIRES_ROOT); }); return Vec::new(); }