Lint
This commit is contained in:
1 parent
99fc9f608e
commit
e43da1b9e8
25 files changed
+110
-135
No files matched your search
@@ -35,13 +35,13 @@ pub enum DrawPrimitive {
|
||||
impl DrawPrimitive {
|
||||
pub fn texture_id(&self) -> TextureId {
|
||||
match self {
|
||||
DrawPrimitive::Rect(rect_primitive) => rect_primitive
|
||||
Self::Rect(rect_primitive) => rect_primitive
|
||||
.texture
|
||||
.map_or_else(TextureId::default, |tex| tex.texture_id),
|
||||
DrawPrimitive::Quad(quad_primitive) => quad_primitive
|
||||
Self::Quad(quad_primitive) => quad_primitive
|
||||
.texture
|
||||
.map_or_else(TextureId::default, |tex| tex.texture_id),
|
||||
_ => TextureId::default(),
|
||||
Self::Text(_) => TextureId::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user