From 3ed07ed2cd91d2118a090508630fdb598e2e1428 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 26 May 2020 09:48:36 +0200 Subject: [PATCH] src/tools/disks.rs: export read_sys --- src/tools/disks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/disks.rs b/src/tools/disks.rs index 7000f69c..10033182 100644 --- a/src/tools/disks.rs +++ b/src/tools/disks.rs @@ -222,7 +222,7 @@ impl Disk { /// Read from a file in this device's sys path. /// /// Note: path must be a relative path! - fn read_sys(&self, path: &Path) -> io::Result>> { + pub fn read_sys(&self, path: &Path) -> io::Result>> { assert!(path.is_relative()); std::fs::read(self.syspath().join(path))