cargo fmt

This commit is contained in:
auronandace
2026-03-24 10:34:07 +00:00
parent a65d6c411c
commit 749d0bb5ef
2 changed files with 6 additions and 4 deletions
+5 -1
View File
@@ -5,7 +5,11 @@
use libredox::call::MmapArgs;
use libredox::flag::{self, O_CLOEXEC, O_RDONLY, O_RDWR, O_WRONLY};
use libredox::{errno::EINVAL, error::{Result, Error}, Fd};
use libredox::{
errno::EINVAL,
error::{Error, Result},
Fd,
};
use syscall::{ProcSchemeVerb, PAGE_SIZE};
/// The Direct Memory Access (DMA) API for drivers
+1 -3
View File
@@ -98,9 +98,7 @@ fn read_bootloader_log_level_env(category: &str, subcategory: &str) -> Option<lo
for log_env_key in log_env_keys {
let log_env_key = log_env_key.as_bytes();
if let Some(log_env) = envs.iter().find_map(|var| var.strip_prefix(log_env_key)) {
if let Ok(Ok(log_level)) =
str::from_utf8(&log_env).map(log::LevelFilter::from_str)
{
if let Ok(Ok(log_level)) = str::from_utf8(&log_env).map(log::LevelFilter::from_str) {
return Some(log_level);
}
}