mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 13:08:42 +00:00
Fix confusing comment for field MetaData::other
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
0d8b865ba4
commit
cb4cffd0ab
1 changed files with 3 additions and 1 deletions
|
@ -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)>,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue