Use Radians as a number directly in gradient example

This commit is contained in:
Héctor Ramón Jiménez 2023-09-08 01:58:52 +02:00
parent c1139898c5
commit d2294737c2
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
4 changed files with 55 additions and 19 deletions

View file

@ -137,8 +137,8 @@ where
}
/// Sets the step size of the [`Slider`].
pub fn step(mut self, step: T) -> Self {
self.step = step;
pub fn step(mut self, step: impl Into<T>) -> Self {
self.step = step.into();
self
}
}