From 01bee768d970f0548037de21c912bc3b8a16121f Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sat, 16 Jan 2021 18:49:10 +0100 Subject: [PATCH] Add must_use to Shape --- epaint/src/shape.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/epaint/src/shape.rs b/epaint/src/shape.rs index 300f5c3d..1615d643 100644 --- a/epaint/src/shape.rs +++ b/epaint/src/shape.rs @@ -6,6 +6,7 @@ use emath::*; /// A paint primitive such as a circle or a piece of text. /// Coordinates are all screen space points (not physical pixels). +#[must_use = "Add a Shape to a Painter"] #[derive(Clone, Debug)] pub enum Shape { /// Paint nothing. This can be useful as a placeholder.