Fix confusing comment for field MetaData::other

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-28 20:33:24 +10:00
parent 0d8b865ba4
commit cb4cffd0ab
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -25,8 +25,10 @@ pub struct MetaData {
pub target: CompactString, pub target: CompactString,
pub bins: Vec<CompactString>, pub bins: Vec<CompactString>,
/// 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. /// 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")] #[serde(flatten, with = "tuple_vec_map")]
pub other: Vec<(CompactString, serde_json::Value)>, pub other: Vec<(CompactString, serde_json::Value)>,
} }