1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

fix clippy lint

This commit is contained in:
Matt Campbell
2022-11-29 11:35:44 -06:00
parent a08282f7af
commit a472d147d6

View File

@@ -447,7 +447,7 @@ impl<'a> Widget for DragValue<'a> {
.drag_value
.edit_string
.take()
.unwrap_or(value_text.clone());
.unwrap_or_else(|| value_text.clone());
let response = ui.add(
TextEdit::singleline(&mut value_text)
.id(id)