mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
Replace #[allow attributes with expect (#7796)
We do have `clippy::allow_attributes` turned on, but it doesn't seem to work properly
This commit is contained in:
@@ -189,7 +189,7 @@ impl Mesh {
|
||||
/// Rectangle with a texture and color.
|
||||
#[inline(always)]
|
||||
pub fn add_rect_with_uv(&mut self, rect: Rect, uv: Rect, color: Color32) {
|
||||
#![allow(clippy::identity_op)]
|
||||
#![expect(clippy::identity_op)]
|
||||
let idx = self.vertices.len() as u32;
|
||||
self.indices
|
||||
.extend_from_slice(&[idx + 0, idx + 1, idx + 2, idx + 2, idx + 1, idx + 3]);
|
||||
|
||||
Reference in New Issue
Block a user