1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-28 07:23:13 -04:00

Use cargo cranky instead of cargo clippy (#1820)

* Use cargo cranky instead of cargo clippy

cargo cranky (https://github.com/ericseppanen/cargo-cranky)
is a new tool that passes lints specified in a Cranky.toml
to cargo clippy.

This is a possible solution to
https://github.com/rust-lang/cargo/issues/5034

* Remove `-W clippy::all` from `check.sh` (rely on `Cranky.toml` instead)
This commit is contained in:
Emil Ernerfeldt
2022-07-20 12:34:19 +02:00
committed by GitHub
parent 898f4804b7
commit bf15bb6e19
5 changed files with 116 additions and 108 deletions

View File

@@ -179,8 +179,8 @@ impl<'a> Painter<'a> {
self.ensure_render_state_for_surface(&surface);
let size = window.inner_size();
let width = size.width as u32;
let height = size.height as u32;
let width = size.width;
let height = size.height;
self.surface_state = Some(SurfaceState {
surface,
width,