From aa8f7a9efcb4a02c7cce89da7092a4cb98de8c62 Mon Sep 17 00:00:00 2001 From: Ashwin Naren Date: Tue, 30 Jun 2026 21:59:06 -0700 Subject: [PATCH 1/3] fix clippy --- libkernel/src/fs/filesystems/fat32/fat.rs | 6 ++++-- src/main.rs | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libkernel/src/fs/filesystems/fat32/fat.rs b/libkernel/src/fs/filesystems/fat32/fat.rs index 03c670d6..e98612a3 100644 --- a/libkernel/src/fs/filesystems/fat32/fat.rs +++ b/libkernel/src/fs/filesystems/fat32/fat.rs @@ -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()), ); } diff --git a/src/main.rs b/src/main.rs index b41c707d..36422704 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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)] From 864e6487f5ef27739614e97c9e27a9f4b9a55f36 Mon Sep 17 00:00:00 2001 From: Ashwin Naren Date: Tue, 30 Jun 2026 22:09:24 -0700 Subject: [PATCH 2/3] fix kunit --- src/testing/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/testing/mod.rs b/src/testing/mod.rs index 229f325a..540b2fcf 100644 --- a/src/testing/mod.rs +++ b/src/testing/mod.rs @@ -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, } }, }; From 652cf67f8adf438f01e043caeb2912fbc5e87345 Mon Sep 17 00:00:00 2001 From: Ashwin Naren Date: Tue, 30 Jun 2026 22:12:16 -0700 Subject: [PATCH 3/3] fix workflow name --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd3d02f8..b1ec2a09 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: branches: [ master ] jobs: - build-test: + lint: runs-on: ubuntu-latest steps: