mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Use Rust edition 2024 (#7280)
This commit is contained in:
@@ -3,7 +3,7 @@ name = "custom_window_frame"
|
||||
version = "0.1.0"
|
||||
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
|
||||
license = "MIT OR Apache-2.0"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
rust-version = "1.85"
|
||||
publish = false
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ fn custom_window_frame(ctx: &egui::Context, title: &str, add_contents: impl FnOn
|
||||
}
|
||||
|
||||
fn title_bar_ui(ui: &mut egui::Ui, title_bar_rect: eframe::epaint::Rect, title: &str) {
|
||||
use egui::{vec2, Align2, FontId, Id, PointerButton, Sense, UiBuilder};
|
||||
use egui::{Align2, FontId, Id, PointerButton, Sense, UiBuilder, vec2};
|
||||
|
||||
let painter = ui.painter();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user