Update dev image for OSDK and bump version to 0.4.0

This commit is contained in:
Zhang Junyang
2024-02-27 11:23:06 +08:00
committed by Tate, Hongliang Tian
parent 674c35079c
commit bd878dd1c9
42 changed files with 188 additions and 153 deletions

View File

@ -95,7 +95,6 @@ pub mod tree;
extern crate alloc;
use alloc::{boxed::Box, string::String};
use core::result::Result;
pub use ktest_proc_macro::ktest;
@ -220,9 +219,7 @@ impl core::iter::Iterator for KtestIter {
type Item = KtestItem;
fn next(&mut self) -> Option<Self::Item> {
let Some(ktest_item) = ktest_array!().get(self.index) else {
return None;
};
let ktest_item = ktest_array!().get(self.index)?;
self.index += 1;
Some(ktest_item.clone())
}

View File

@ -13,7 +13,6 @@ use alloc::{
vec,
vec::Vec,
};
use core::iter::{FromIterator, Iterator};
use crate::{
path::{KtestPath, PathElement},