From cb4cffd0ab227c5f54b94f490942b5e30b2ddac7 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 28 Jul 2022 20:33:24 +1000 Subject: [PATCH] Fix confusing comment for field `MetaData::other` Signed-off-by: Jiahao XU --- src/metafiles/binstall_v1.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/metafiles/binstall_v1.rs b/src/metafiles/binstall_v1.rs index 2cfc58f8..2d429ec2 100644 --- a/src/metafiles/binstall_v1.rs +++ b/src/metafiles/binstall_v1.rs @@ -25,8 +25,10 @@ pub struct MetaData { pub target: CompactString, pub bins: Vec, - /// Forwards compatibility. Unknown keys from future versions of Cargo + /// Forwards compatibility. Unknown keys from future versions /// will be stored here and retained when the file is saved. + /// + /// We use an `Vec` here since it is never accessed in Rust. #[serde(flatten, with = "tuple_vec_map")] pub other: Vec<(CompactString, serde_json::Value)>, }