1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 13:50:04 -04:00

Set MSRV to 1.56.0 and use rust edition 2021 (#998)

This commit is contained in:
Emil Ernerfeldt
2021-12-25 19:32:25 +01:00
committed by GitHub
parent ee00214511
commit c60d17b91b
18 changed files with 36 additions and 29 deletions

View File

@@ -4,7 +4,8 @@ version = "0.15.0"
authors = ["Emil Ernerfeldt <emil.ernerfeldt@gmail.com>"]
description = "Bindings for compiling egui code to WASM for a web page"
license = "MIT OR Apache-2.0"
edition = "2018"
edition = "2021"
rust-version = "1.56"
homepage = "https://github.com/emilk/egui/tree/master/egui_web"
readme = "README.md"
repository = "https://github.com/emilk/egui/tree/master/egui_web"

View File

@@ -198,9 +198,8 @@ impl AppRunner {
}
.build();
let app = &mut self.app; // TODO: remove when we bump MSRV to 1.56
let (egui_output, shapes) = self.egui_ctx.run(raw_input, |egui_ctx| {
app.update(egui_ctx, &mut frame);
self.app.update(egui_ctx, &mut frame);
});
let clipped_meshes = self.egui_ctx.tessellate(shapes);