mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Add must_use to Shape
This commit is contained in:
@@ -6,6 +6,7 @@ use emath::*;
|
|||||||
|
|
||||||
/// A paint primitive such as a circle or a piece of text.
|
/// A paint primitive such as a circle or a piece of text.
|
||||||
/// Coordinates are all screen space points (not physical pixels).
|
/// Coordinates are all screen space points (not physical pixels).
|
||||||
|
#[must_use = "Add a Shape to a Painter"]
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
pub enum Shape {
|
pub enum Shape {
|
||||||
/// Paint nothing. This can be useful as a placeholder.
|
/// Paint nothing. This can be useful as a placeholder.
|
||||||
|
|||||||
Reference in New Issue
Block a user