Skip to content

Commit 41b0738

Browse files
committed
feat: adding kgm3 to units. resolves #59
1 parent b1672ea commit 41b0738

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

modules/models/src/shared.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pub enum Unit {
2121
KM,
2222
#[allow(non_camel_case_types)]
2323
TONES_KM,
24+
KGM3,
2425
UNKNOWN,
2526
}
2627

@@ -38,6 +39,7 @@ impl From<&String> for Unit {
3839
"kwh" => Unit::KWH,
3940
"m2r1" => Unit::M2R1,
4041
"tones*km" => Unit::TONES_KM,
42+
"kgm3" => Unit::KGM3,
4143
_ => Unit::UNKNOWN,
4244
}
4345
}

0 commit comments

Comments
 (0)