mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Fix a few nightly clippy lints (#8388)
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
|
||||
#![expect(clippy::identity_op)]
|
||||
|
||||
use emath::{GuiRounding as _, NumExt as _, Pos2, Rect, Rot2, Vec2, pos2, remap, vec2};
|
||||
use emath::{
|
||||
GuiRounding as _, NumExt as _, Pos2, Rect, Rot2, Vec2, fast_midpoint, pos2, remap, vec2,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
CircleShape, ClippedPrimitive, ClippedShape, Color32, CornerRadiusF32, CubicBezierShape,
|
||||
@@ -1074,7 +1076,7 @@ fn stroke_and_fill_path(
|
||||
*/
|
||||
|
||||
let inner_rad = 0.5 * (stroke.width - feathering);
|
||||
let outer_rad = 0.5 * (stroke.width + feathering);
|
||||
let outer_rad = fast_midpoint(stroke.width, feathering);
|
||||
|
||||
match path_type {
|
||||
PathType::Closed => {
|
||||
|
||||
Reference in New Issue
Block a user