mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Refactor: pass Rect:s by value (cleaner)
This commit is contained in:
@@ -376,7 +376,7 @@ impl Rect {
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn intersect(self, other: &Rect) -> Self {
|
||||
pub fn intersect(self, other: Rect) -> Self {
|
||||
Self {
|
||||
min: self.min.max(other.min),
|
||||
max: self.max.min(other.max),
|
||||
|
||||
Reference in New Issue
Block a user