mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Update to Rust 1.65 (#2314)
* Update to Rust 1.65 Because then you can use dynamic linking on Linux * Fix a bunch of clippy lints * Update changelogs * More clippy fixes
This commit is contained in:
@@ -8,7 +8,7 @@ authors = [
|
||||
]
|
||||
description = "Extra functionality and widgets for the egui GUI library"
|
||||
edition = "2021"
|
||||
rust-version = "1.62"
|
||||
rust-version = "1.65"
|
||||
homepage = "https://github.com/emilk/egui"
|
||||
license = "MIT OR Apache-2.0"
|
||||
readme = "README.md"
|
||||
@@ -67,4 +67,6 @@ usvg = { version = "0.23", optional = true }
|
||||
serde = { version = "1", features = ["derive"], optional = true }
|
||||
|
||||
# feature "tracing"
|
||||
tracing = { version = "0.1", optional = true, default-features = false, features = ["std"] }
|
||||
tracing = { version = "0.1", optional = true, default-features = false, features = [
|
||||
"std",
|
||||
] }
|
||||
|
||||
@@ -63,7 +63,7 @@ impl<'a> DatePickerButton<'a> {
|
||||
|
||||
impl<'a> Widget for DatePickerButton<'a> {
|
||||
fn ui(self, ui: &mut Ui) -> egui::Response {
|
||||
let id = ui.make_persistent_id(&self.id_source);
|
||||
let id = ui.make_persistent_id(self.id_source);
|
||||
let mut button_state = ui
|
||||
.memory()
|
||||
.data
|
||||
@@ -104,7 +104,7 @@ impl<'a> Widget for DatePickerButton<'a> {
|
||||
let InnerResponse {
|
||||
inner: saved,
|
||||
response: area_response,
|
||||
} = Area::new(ui.make_persistent_id(&self.id_source))
|
||||
} = Area::new(ui.make_persistent_id(self.id_source))
|
||||
.order(Order::Foreground)
|
||||
.fixed_pos(pos)
|
||||
.show(ui.ctx(), |ui| {
|
||||
|
||||
@@ -67,7 +67,7 @@ impl<'a> DatePickerPopup<'a> {
|
||||
)
|
||||
.sizes(
|
||||
Size::exact((spacing + height) * (weeks.len() + 1) as f32),
|
||||
if self.calendar { 1 } else { 0 },
|
||||
self.calendar as usize,
|
||||
)
|
||||
.size(Size::exact(height))
|
||||
.vertical(|mut strip| {
|
||||
|
||||
Reference in New Issue
Block a user