mirror of
https://github.com/obsqrbtz/egui_knob.git
synced 2026-04-08 20:19:17 +03:00
remove one compiler warning
This commit is contained in:
@@ -175,7 +175,7 @@ impl<'a> Knob<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Widget for Knob<'_> {
|
impl Widget for Knob<'_> {
|
||||||
fn ui(mut self, ui: &mut Ui) -> Response {
|
fn ui(self, ui: &mut Ui) -> Response {
|
||||||
if self.value.is_nan() {
|
if self.value.is_nan() {
|
||||||
*self.value = self.min;
|
*self.value = self.min;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user