From: Ian Jackson Date: Fri, 9 Jul 2021 17:24:09 +0000 (+0100) Subject: jstest: Make targets be an IndexVec X-Git-Tag: otter-0.7.2~204 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d744b1e2ce7d867fef9a2d12a3923c7cefcdc873;p=otter.git jstest: Make targets be an IndexVec Signed-off-by: Ian Jackson --- diff --git a/jstest/jst-lower.rs b/jstest/jst-lower.rs index c52d028d..dbbbf943 100644 --- a/jstest/jst-lower.rs +++ b/jstest/jst-lower.rs @@ -47,7 +47,7 @@ pub struct Test { name: String, #[serde(with = "indexmap::serde_seq")] pieces: IndexMap, - targets: Vec, + targets: IndexSet, } #[derive(Debug)] @@ -196,7 +196,7 @@ impl TestsAccumulator { let targets = targets.into_iter().map( |s| s.try_into().unwrap() - ).collect_vec(); + ).collect(); let test = Test { name: name.into(), diff --git a/jstest/jstest.rs b/jstest/jstest.rs index 74de17d4..410947ca 100644 --- a/jstest/jstest.rs +++ b/jstest/jstest.rs @@ -8,4 +8,5 @@ pub use otter_api_tests::Explode; pub use otter::imports::tera_standalone as tera; pub use indexmap::IndexMap; +pub use indexmap::IndexSet; pub use structopt::StructOpt;