Skip to content

Commit

Permalink
Make description a const fn.
Browse files Browse the repository at this point in the history
  • Loading branch information
hellow554 authored and iliekturtles committed Jan 27, 2024
1 parent e06a5e8 commit 499b3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quantity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ macro_rules! quantity {
#[must_use = "method returns a static value"]
#[allow(dead_code)]
#[inline(always)]
pub fn description() -> &'static str {
pub const fn description() -> &'static str {
$description
}

Expand Down

0 comments on commit 499b3c3

Please sign in to comment.