mirror of
https://github.com/hexagonal-sun/moss-kernel.git
synced 2026-07-30 10:06:24 -04:00
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -8,7 +8,7 @@ on:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build-test:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
@@ -89,8 +89,10 @@ impl Fat {
|
||||
dev.read_at(bpb.sector_offset(sec), &mut buf).await?;
|
||||
|
||||
fat.extend(
|
||||
buf.chunks_exact(4)
|
||||
.map(|chunk| u32::from_le_bytes(chunk.try_into().unwrap()))
|
||||
buf.as_chunks::<4>()
|
||||
.0
|
||||
.iter()
|
||||
.map(|chunk| u32::from_le_bytes(*chunk))
|
||||
.map(|v| v.into()),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
#![no_main]
|
||||
#![feature(used_with_arg)]
|
||||
#![feature(likely_unlikely)]
|
||||
#![feature(box_as_ptr)]
|
||||
#![allow(internal_features)]
|
||||
#![cfg_attr(test, feature(core_intrinsics))]
|
||||
#![feature(custom_test_frameworks)]
|
||||
|
||||
@@ -84,9 +84,8 @@ macro_rules! ktest_impl {
|
||||
)
|
||||
};
|
||||
match result {
|
||||
0 => crate::testing::TestResult::Ok,
|
||||
1 => crate::testing::TestResult::Failed,
|
||||
_ => unreachable!("catch_unwind should only return 0 or 1"),
|
||||
false => crate::testing::TestResult::Ok,
|
||||
true => crate::testing::TestResult::Failed,
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user