From 03e0b11ae852a8cb840fd41320a97eefb52e7be3 Mon Sep 17 00:00:00 2001 From: Michael Bryan Date: Sun, 30 Dec 2018 01:58:41 +0800 Subject: [PATCH] Use the #[deprecated] attribute properly (fixes #34) --- src/types.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index c9213781..79cc5e0b 100644 --- a/src/types.rs +++ b/src/types.rs @@ -50,7 +50,9 @@ impl Gcode { } /// The number associated with this `Gcode` (e.g. the `01` in `G01 X123`). - #[deprecated = "You probably want the `Gcode::major_number()` and `Gcode::minor_number()` methods instead"] + #[deprecated( + note = "You probably want the `Gcode::major_number()` and `Gcode::minor_number()` methods instead" + )] pub fn number(&self) -> f32 { self.number }