mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 10:53:25 +00:00
Fix lint errors
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
82a2c4cdec
commit
cbb4b4e631
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user