diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2022-05-06 17:16:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 17:16:57 -0400 |
commit | 4ceaf8d00894a7b9fb84581aa5ec05568142c8fb (patch) | |
tree | 419098e3c1bf3dc90d9b1283fe7b895254c26ffe /src | |
parent | 9d6d712e27fa6b90f505e214bd039865e63214e5 (diff) |
deps: migrate to starship-battery (#724)
Migrates the `battery` dependency to the more actively maintained
`starship-battery` fork, found at https://github.com/starship/rust-battery.
See https://github.com/svartalf/rust-battery/pull/92 for more information.
Diffstat (limited to 'src')
-rw-r--r-- | src/app/data_harvester.rs | 2 | ||||
-rw-r--r-- | src/app/data_harvester/batteries/battery.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/app/data_harvester.rs b/src/app/data_harvester.rs index 86e1a4ca..9dcc377c 100644 --- a/src/app/data_harvester.rs +++ b/src/app/data_harvester.rs @@ -9,7 +9,7 @@ use fxhash::FxHashMap; use sysinfo::{System, SystemExt}; #[cfg(feature = "battery")] -use battery::{Battery, Manager}; +use starship_battery::{Battery, Manager}; use crate::app::layout_manager::UsedWidgets; diff --git a/src/app/data_harvester/batteries/battery.rs b/src/app/data_harvester/batteries/battery.rs index 7e4644e9..85ef3b48 100644 --- a/src/app/data_harvester/batteries/battery.rs +++ b/src/app/data_harvester/batteries/battery.rs @@ -7,9 +7,9 @@ //! - FreeBSD //! - DragonFlyBSD //! -//! For more information, see https://github.com/svartalf/rust-battery +//! For more information, see https://github.com/starship/rust-battery -use battery::{ +use starship_battery::{ units::{power::watt, ratio::percent, time::second}, Battery, Manager, }; |