Fix several warnings when ktest is enabled

This commit is contained in:
Yuke Peng
2024-08-15 23:26:29 +08:00
committed by Tate, Hongliang Tian
parent 0f9285d72b
commit 49692c2068
6 changed files with 8 additions and 8 deletions

View File

@ -120,7 +120,7 @@ fn test_alloc_dealloc() {
let mut contiguous_options = FrameAllocOptions::new(10);
contiguous_options.is_contiguous(true);
let mut remember_vec = Vec::new();
for i in 0..10 {
for _ in 0..10 {
for i in 0..10 {
let single_frame = single_options.alloc_single().unwrap();
if i % 3 == 0 {