fix(cli): progress.rs 测试 helper 的返回类型抽成 Recorder 别名
Guards / 依赖许可与来源(cargo-deny) (push) Canceled after 0s
Guards / 文件行数 ≤400 守门 (push) Canceled after 0s
Guards / unsafe 落点守门(集合必须恰好等于期望) (push) Canceled after 0s
Guards / design 零第三方依赖守门 (push) Canceled after 0s
Guards / presenter 零 UI 守门 (push) Canceled after 0s
Guards / core 零 UI 守门 (push) Canceled after 0s
Dev Guards / 架构与合规守门(同 main 口径) (push) Canceled after 0s
Dev Guards / fmt (rustfmt --check) (push) Canceled after 0s
Dev Guards / clippy (ubuntu) (push) Canceled after 0s
Guards / 依赖许可与来源(cargo-deny) (push) Canceled after 0s
Guards / 文件行数 ≤400 守门 (push) Canceled after 0s
Guards / unsafe 落点守门(集合必须恰好等于期望) (push) Canceled after 0s
Guards / design 零第三方依赖守门 (push) Canceled after 0s
Guards / presenter 零 UI 守门 (push) Canceled after 0s
Guards / core 零 UI 守门 (push) Canceled after 0s
Dev Guards / 架构与合规守门(同 main 口径) (push) Canceled after 0s
Dev Guards / fmt (rustfmt --check) (push) Canceled after 0s
Dev Guards / clippy (ubuntu) (push) Canceled after 0s
M210 引入 type_complexity(clippy 1.99 -D warnings)。M210 的 brief 里没有 clippy 这一项(五步门禁是它 spawn 之后才补上的),所以第一轮没抓到;新门禁在合并态立刻咬住。
This commit is contained in:
1 parent
96753c5b38
commit
1748e046f8
1 file changed
+4
-1
@@ -193,8 +193,11 @@ mod tests {
|
||||
|
||||
use super::*;
|
||||
|
||||
/// 测试用的输出端:一个可注入的 sink + 它收到的行。
|
||||
type Recorder = (Arc<dyn Fn(&str) + Send + Sync>, Arc<Mutex<Vec<String>>>);
|
||||
|
||||
/// 抓行的输出端。
|
||||
fn recorder() -> (Arc<dyn Fn(&str) + Send + Sync>, Arc<Mutex<Vec<String>>>) {
|
||||
fn recorder() -> Recorder {
|
||||
let lines = Arc::new(Mutex::new(Vec::new()));
|
||||
let sink_lines = Arc::clone(&lines);
|
||||
let out: Arc<dyn Fn(&str) + Send + Sync> =
|
||||
|
||||
Reference in new issue
Block a user