[Perf] remove dead_code warning from from_value of margin

This commit is contained in:
Mist 2024-03-17 14:04:33 +08:00
parent ccf108b440
commit 123e6fb2f2

View file

@ -19,6 +19,7 @@ impl Edge for Margin {
}
impl Margin {
#[allow(dead_code)]
pub fn from_value(value: f32) -> Margin {
Margin {
left: value,