Skip to content

Commit

Permalink
saul: Enum variants that were legacy shifted towards constants need n…
Browse files Browse the repository at this point in the history
…aming exceptions
  • Loading branch information
chrysn committed Oct 15, 2023
1 parent 702ffd5 commit b9fbcec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/saul.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,10 @@ impl Unit {
// we can just switch over before they go.
#[deprecated(note = "Use the GForce variant instead")]
pub const G: Self = Unit::GForce;
#[allow(non_upper_case_globals)]
#[deprecated(note = "Use the Gram variant instead")]
pub const Gr: Self = Unit::Gram;
#[allow(non_upper_case_globals)]
#[deprecated(note = "Use the Gauss variant instead")]
pub const Gs: Self = Unit::Gauss;

Expand Down

0 comments on commit b9fbcec

Please sign in to comment.