From 17ca5018ebb28d5d392d61aee62170fb3e4f2a5b Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 22 Nov 2024 10:42:17 +1100 Subject: [PATCH] units: Comment alloc feature Add a comment to the `serde` module about why we have all the `alloc` feature gating. Done as part of #3556 - auditing the whole crate for use of `alloc` feature. --- units/src/amount/serde.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/units/src/amount/serde.rs b/units/src/amount/serde.rs index 038b530ef..a485994b7 100644 --- a/units/src/amount/serde.rs +++ b/units/src/amount/serde.rs @@ -24,7 +24,7 @@ use core::fmt; use serde::{Deserialize, Deserializer, Serialize, Serializer}; -#[cfg(feature = "alloc")] +#[cfg(feature = "alloc")] // This is because `to_float_in` uses `to_string`. use super::Denomination; use super::{Amount, ParseAmountError, SignedAmount};