From 123e6fb2f26cb33f982e80731e5219df62d9e650 Mon Sep 17 00:00:00 2001 From: Mist Date: Sun, 17 Mar 2024 14:04:33 +0800 Subject: [PATCH] [Perf] remove dead_code warning from from_value of margin --- generator/src/edges/margin.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/generator/src/edges/margin.rs b/generator/src/edges/margin.rs index ed90eb3..d428666 100644 --- a/generator/src/edges/margin.rs +++ b/generator/src/edges/margin.rs @@ -19,6 +19,7 @@ impl Edge for Margin { } impl Margin { + #[allow(dead_code)] pub fn from_value(value: f32) -> Margin { Margin { left: value,