Fix lint errors

This commit is contained in:
Fabing Li
2025-02-27 03:09:05 +00:00
committed by Tate, Hongliang Tian
parent 82a2c4cdec
commit cbb4b4e631
24 changed files with 72 additions and 72 deletions

View File

@ -90,7 +90,7 @@ fn get_log_level() -> Option<LevelFilter> {
let value = kcmdline
.split(' ')
.find(|arg| arg.starts_with("ostd.log_level="))
.map(|arg| arg.split('=').last().unwrap_or_default())?;
.map(|arg| arg.split('=').next_back().unwrap_or_default())?;
LevelFilter::from_str(value).ok()
}