From 7fbf02c3cda7b0e146563ac691c4b9e0ddf4b4f6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 19 Jul 2021 18:56:42 +0100 Subject: [PATCH] jst-lower: Provide ZUpdateSpec::GOnly Not currently used. Signed-off-by: Ian Jackson --- jstest/jst-lower.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jstest/jst-lower.rs b/jstest/jst-lower.rs index 5462e4b6..f543820b 100644 --- a/jstest/jst-lower.rs +++ b/jstest/jst-lower.rs @@ -74,6 +74,7 @@ pub struct TestsAccumulator { pub enum ZUpdateSpec { Auto, Spec(ZLevel), + GOnly, } use ZUpdateSpec as ZUS; @@ -85,6 +86,10 @@ impl ZUpdateSpec { z: last.increment().unwrap(), zg: { lastg.increment(); *lastg }, }, + ZUS::GOnly => ZLevel { + z: last.repack().unwrap(), + zg: { lastg.increment(); *lastg }, + }, ZUS::Spec(zl) => { *last = zl.z.clone_mut(); *lastg = zl.zg; -- 2.30.2