mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Enable and fix some more clippy lints
This commit is contained in:
@@ -172,7 +172,7 @@ impl Rect {
|
||||
/// Rotate the bounds (will expand the [`Rect`])
|
||||
#[must_use]
|
||||
#[inline]
|
||||
pub fn rotate_bb(self, rot: crate::Rot2) -> Self {
|
||||
pub fn rotate_bb(self, rot: Rot2) -> Self {
|
||||
let a = rot * self.left_top().to_vec2();
|
||||
let b = rot * self.right_top().to_vec2();
|
||||
let c = rot * self.left_bottom().to_vec2();
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
use crate::*;
|
||||
use crate::{pos2, remap, remap_clamp, Pos2, Rect, Vec2};
|
||||
|
||||
/// Linearly transforms positions from one [`Rect`] to another.
|
||||
///
|
||||
/// [`RectTransform`] stores the rectangles, and therefore supports clamping and culling.
|
||||
#[repr(C)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
|
||||
#[cfg_attr(feature = "bytemuck", derive(bytemuck::Pod, bytemuck::Zeroable))]
|
||||
pub struct RectTransform {
|
||||
|
||||
Reference in New Issue
Block a user