src/tools/disks.rs: export read_sys

This commit is contained in:
Dietmar Maurer 2020-05-26 09:48:36 +02:00
parent 75410d65ef
commit 3ed07ed2cd

View File

@ -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<Option<Vec<u8>>> {
pub fn read_sys(&self, path: &Path) -> io::Result<Option<Vec<u8>>> {
assert!(path.is_relative());
std::fs::read(self.syspath().join(path))