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

Enable and fix some more clippy lints

This commit is contained in:
Emil Ernerfeldt
2022-12-05 09:29:59 +01:00
parent e1f348e4b2
commit 5093b67e9b
28 changed files with 44 additions and 44 deletions

View File

@@ -30,7 +30,7 @@ impl Shadow {
}
}
/// Used for widnows in dark mode.
/// Used for egui windows in dark mode.
pub fn big_dark() -> Self {
Self {
extrusion: 32.0,
@@ -38,7 +38,7 @@ impl Shadow {
}
}
/// Used for widnows in light mode.
/// Used for egui windows in light mode.
pub fn big_light() -> Self {
Self {
extrusion: 32.0,
@@ -46,7 +46,7 @@ impl Shadow {
}
}
pub fn tessellate(&self, rect: emath::Rect, rounding: impl Into<Rounding>) -> Mesh {
pub fn tessellate(&self, rect: Rect, rounding: impl Into<Rounding>) -> Mesh {
// tessellator.clip_rect = clip_rect; // TODO(emilk): culling
let Self { extrusion, color } = *self;