From c82e94cae5a8f735a1837e4997651ebd38ef2eb9 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Sun, 14 Jan 2018 14:52:24 -0500 Subject: [PATCH] stat: Remove hard-coded path for mount information --- src/stat/stat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stat/stat.rs b/src/stat/stat.rs index 73d507383..7acad72fe 100644 --- a/src/stat/stat.rs +++ b/src/stat/stat.rs @@ -475,7 +475,7 @@ impl Stater { // mount points aren't displayed when showing filesystem information None } else { - let reader = BufReader::new(File::open(MOUNT_INFO).expect("Failed to read /etc/mtab")); + let reader = BufReader::new(File::open(MOUNT_INFO).expect(&format!("Failed to read {}", MOUNT_INFO))); let mut mount_list = reader.lines() .filter_map(|s| s.ok()) .filter_map(|line| line.split_whitespace().nth(1).map(|s| s.to_owned()))