修复 “cargo clippy -- -D warnings” 产生的错误

This commit is contained in:
YuWuKunCheng
2026-05-30 13:25:57 +08:00
parent 22109d8b30
commit af3ebf13c8
13 changed files with 162 additions and 189 deletions
+6 -6
View File
@@ -415,7 +415,7 @@ impl 中枢 {
: &mut Vec<Arc<>>,
: &Arc<>,
) -> Option<Arc<>> {
if .last().map(|x| Arc::as_ptr(x)) == Some(Arc::as_ptr()) {
if .last().map(Arc::as_ptr) == Some(Arc::as_ptr()) {
.pop()
} else {
None
@@ -430,7 +430,7 @@ impl 中枢 {
: &mut Vec<Arc<>>,
: bool,
: &str,
: i64,
_层级: i64,
) {
if 线.len() < 3 {
return;
@@ -472,7 +472,7 @@ impl 中枢 {
));
Self::(, );
// Python: return 中枢递归分析(虚线序列, 中枢序列, ...)
Self::(线, , , , );
Self::(线, , , , _层级);
return;
}
}
@@ -487,7 +487,7 @@ impl 中枢 {
if needs_pop {
let = Arc::clone(&[_idx]);
Self::(, &);
Self::(线, , , , );
Self::(线, , , , _层级);
return;
}
@@ -508,8 +508,8 @@ impl 中枢 {
let mut = [_idx].();
let mut : Vec<Arc<线>> = Vec::new();
for i in ..线.len() {
let 线 = Arc::clone(&线[i]);
for 线_ref in &线[..] {
let 线 = Arc::clone(线_ref);
// 检查是否超出中枢范围(缺口)
if crate::types::::(, , 线.(), 线.()).()