From 3d9372029e65dfd103a6a808c5fbae60a5f967b9 Mon Sep 17 00:00:00 2001 From: AskaEth Date: Sun, 1 Nov 2026 08:26:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor(app):=20=E5=A4=84=E7=90=86=E5=99=A8?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=A4=B9=E5=85=B7=E7=94=A8=20StepView=20?= =?UTF-8?q?=E5=88=AB=E5=90=8D=EF=BC=8C=E8=BF=87=20clippy::type=5Fcomplexit?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit clippy --all-targets -D warnings 报 very complex type(RefCell, usize)>>), 抽 pub(super) type StepView 别名,语义不变。 --- crates/app/src/host/install_processors_fixture.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/app/src/host/install_processors_fixture.rs b/crates/app/src/host/install_processors_fixture.rs index 30a03b8..3f96509 100644 --- a/crates/app/src/host/install_processors_fixture.rs +++ b/crates/app/src/host/install_processors_fixture.rs @@ -29,6 +29,9 @@ use crate::host::meter::Meter; static SEQ: AtomicUsize = AtomicUsize::new(0); +/// 一步的计划视图(序号 / 坐标 / 参数 / classpath 条数)。 +pub(super) type StepView = (usize, String, Vec, usize); + /// 一段 cases 的公共环境:临时数据根 + 引擎 + 进度通道。 pub(super) struct Harness { dir: PathBuf, @@ -104,7 +107,7 @@ pub(super) struct Fake { pub(super) java: Option, pub(super) run_error: Option, calls: RefCell>, - steps: RefCell, usize)>>, + steps: RefCell>, } impl Fake { @@ -123,7 +126,7 @@ impl Fake { } /// 被组出来的每步(序号 / 坐标 / 参数 / classpath 条数)。 - pub(super) fn steps(&self) -> Vec<(usize, String, Vec, usize)> { + pub(super) fn steps(&self) -> Vec { self.steps.borrow().clone() } }