Skip to content

Commit

Permalink
Make from_degrees for hues a const fn
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogeon committed Jul 31, 2024
1 parent afa3b12 commit b60a87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion palette/src/hues.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ macro_rules! make_hues {
impl<T: RealAngle> $name<T> {
/// Create a new hue from degrees. This is an alias for `new`.
#[inline]
pub fn from_degrees(degrees: T) -> Self {
pub const fn from_degrees(degrees: T) -> Self {
Self::new(degrees)
}

Expand Down

0 comments on commit b60a87d

Please sign in to comment.