1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Fix some clippy issues found by 1.84.0 (#5603)

This commit is contained in:
Emil Ernerfeldt
2025-01-13 08:29:13 +01:00
committed by GitHub
parent 1339639706
commit 164f56f554
33 changed files with 65 additions and 81 deletions

View File

@@ -103,7 +103,7 @@ impl<'a> DatePickerButton<'a> {
}
}
impl<'a> Widget for DatePickerButton<'a> {
impl Widget for DatePickerButton<'_> {
fn ui(self, ui: &mut Ui) -> egui::Response {
let id = ui.make_persistent_id(self.id_salt);
let mut button_state = ui

View File

@@ -37,7 +37,7 @@ pub(crate) struct DatePickerPopup<'a> {
pub highlight_weekends: bool,
}
impl<'a> DatePickerPopup<'a> {
impl DatePickerPopup<'_> {
/// Returns `true` if user pressed `Save` button.
pub fn draw(&mut self, ui: &mut Ui) -> bool {
let id = ui.make_persistent_id("date_picker");