mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Update MSRV to Rust 1.70.0 (#3310)
* Update to Rust 1.70 * Fix renamed clippy lint * Use let-else more * Code cleanup * Remove derelict Safety comments * Enable more clippy lints
This commit is contained in:
@@ -8,7 +8,7 @@ authors = [
|
||||
]
|
||||
description = "Immediate mode plotting for the egui GUI library"
|
||||
edition = "2021"
|
||||
rust-version = "1.67"
|
||||
rust-version = "1.70"
|
||||
homepage = "https://github.com/emilk/egui"
|
||||
license = "MIT OR Apache-2.0"
|
||||
readme = "README.md"
|
||||
|
||||
@@ -255,9 +255,8 @@ impl AxisWidget {
|
||||
|
||||
// --- add ticks ---
|
||||
let font_id = TextStyle::Body.resolve(ui.style());
|
||||
let transform = match self.transform {
|
||||
Some(t) => t,
|
||||
None => return response,
|
||||
let Some(transform) = self.transform else {
|
||||
return response;
|
||||
};
|
||||
|
||||
for step in self.steps.iter() {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//! Contains items that can be added to a plot.
|
||||
#![allow(clippy::type_complexity)] // TODO(emilk): simplify some of the callback types with type aliases
|
||||
|
||||
use std::ops::RangeInclusive;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user