aboutsummaryrefslogtreecommitdiffstats
path: root/src/power/sys/linux.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/power/sys/linux.rs')
-rw-r--r--src/power/sys/linux.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/power/sys/linux.rs b/src/power/sys/linux.rs
index 9b4bcc4..90115a2 100644
--- a/src/power/sys/linux.rs
+++ b/src/power/sys/linux.rs
@@ -18,10 +18,11 @@ pub fn power_supplies() -> Vec<super::PowerSupplyInfo> {
let ty = super::super::slurp(entry.path().join("type"))
.map(|t: String| super::PowerSupplyType::from_str(&t))
.expect("couldn't find power supply type");
- let energy_full = super::super::slurp(entry.path().join("energy_full"));
+ let energy_full =
+ super::super::slurp(entry.path().join("energy_full"));
let energy_now = super::super::slurp(entry.path().join("energy_now"));
- let online =
- super::super::slurp(entry.path().join("online")).map(|n: u8| n != 0);
+ let online = super::super::slurp(entry.path().join("online"))
+ .map(|n: u8| n != 0);
power_supplies.push(super::PowerSupplyInfo {
name,