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))