Skip to content

Commit

Permalink
remove unneeded dbg!
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Jan 21, 2024
1 parent fae1185 commit fae14f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bar_items/battery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl Bat {
}

async fn read(&self, file_name: impl AsRef<str>) -> Result<String> {
Ok(read_to_string(dbg!(self.dir.join(file_name.as_ref()))).await?)
Ok(read_to_string(self.dir.join(file_name.as_ref())).await?)
}

async fn read_usize(&self, file_name: impl AsRef<str>) -> Result<usize> {
Expand All @@ -115,7 +115,6 @@ impl Bat {
Ok(BatState::from_str(self.read("status").await?.trim())?)
}

// NOTE: there is also `/capacity` which returns an integer percentage
pub async fn percent(&self) -> Result<f32> {
match self.uses_charge() {
false => Ok(self.read_usize("capacity").await? as f32),
Expand Down

0 comments on commit fae14f7

Please sign in to comment.