style: 修复 clippy --all-targets 告警

This commit is contained in:
爱特每羊队
2026-06-30 15:18:13 +08:00
parent 26839db07b
commit 5feba7c20d
5 changed files with 129 additions and 128 deletions
@@ -132,13 +132,13 @@ fn array_index_of_not_found() {
#[test]
fn array_includes_true() {
let (_vm, result) = eval("[1,2,3].includes(2)").unwrap();
assert_eq!(result.as_bool(), true);
assert!(result.as_bool());
}
#[test]
fn array_includes_false() {
let (_vm, result) = eval("[1,2,3].includes(99)").unwrap();
assert_eq!(result.as_bool(), false);
assert!(!result.as_bool());
}
#[test]