summaryrefslogtreecommitdiffstats
path: root/src/of_node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/of_node.rs')
-rw-r--r--src/of_node.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/of_node.rs b/src/of_node.rs
index 5dff2a0..01806df 100644
--- a/src/of_node.rs
+++ b/src/of_node.rs
@@ -12,7 +12,8 @@ fn read_u32_node(node_name: &str) -> Result<u32> {
"/sys/devices/platform/auxdisplay/of_node/{}",
node_name
))?;
- Ok(f.read_u32::<BigEndian>()?)
+ let value = f.read_u32::<BigEndian>()?;
+ Ok(value)
}
pub fn display_height_chars() -> Result<u32> {