Optimize CratesToml: Use Vec instead of BTreeSet

for storing bins.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-07-26 13:43:30 +10:00
parent e86239f9be
commit 03c8295cd8
No known key found for this signature in database
GPG key ID: 591C0B03040416D6
2 changed files with 6 additions and 7 deletions

View file

@ -1,4 +1,3 @@
use std::collections::BTreeSet;
use std::path::PathBuf;
use crate::{metafiles, DesiredTargets, PkgOverride};
@ -20,7 +19,7 @@ pub struct Options {
/// MetaData required to update MetaFiles.
pub struct MetaData {
pub bins: BTreeSet<String>,
pub bins: Vec<String>,
pub cvs: metafiles::CrateVersionSource,
pub version_req: String,
pub target: String,