Skip to content

Commit

Permalink
gas id float fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KG32 committed Oct 23, 2024
1 parent 8861ab7 commit e2174fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dive-deco"
version = "4.3.1"
version = "4.3.2"
edition = "2021"
license = "MIT"
description = "A dive decompression models library (Buehlmann ZH-L 16C)"
Expand Down
2 changes: 1 addition & 1 deletion src/common/gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub enum InertGas {

impl std::fmt::Display for Gas {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}/{}", self.o2_pp * 100., self.he_pp * 100.)
write!(f, "{:.0}/{:.0}", self.o2_pp * 100., self.he_pp * 100.)
}
}

Expand Down

0 comments on commit e2174fc

Please sign in to comment.