Skip to content

Commit

Permalink
Remove #![feature(feature)] from crates/sel4-hal-adapters
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Jan 11, 2024
1 parent 8332c7c commit 26f6f5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion crates/sel4-hal-adapters/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
//

#![no_std]
#![feature(never_type)]

#[cfg(feature = "smoltcp-hal")]
pub mod smoltcp;
12 changes: 6 additions & 6 deletions crates/sel4-hal-adapters/src/smoltcp/phy/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use smoltcp::{
use serde::{Deserialize, Serialize};

use sel4_externally_shared::ExternallySharedRef;
use sel4_microkit::{Channel, Handler, MessageInfo};
use sel4_microkit::{Channel, Handler, Infallible, MessageInfo};
use sel4_microkit_message::MessageInfoExt as _;
use sel4_shared_ring_buffer::{roles::Use, RingBuffers};

Expand Down Expand Up @@ -44,8 +44,8 @@ pub struct PhyDeviceHandler<Device> {
dev: Device,
client_region: ExternallySharedRef<'static, [u8]>,
client_region_paddr: usize,
rx_ring_buffers: RingBuffers<'static, Use, fn() -> Result<(), !>>,
tx_ring_buffers: RingBuffers<'static, Use, fn() -> Result<(), !>>,
rx_ring_buffers: RingBuffers<'static, Use, fn() -> Result<(), Infallible>>,
tx_ring_buffers: RingBuffers<'static, Use, fn() -> Result<(), Infallible>>,
device_channel: Channel,
client_channel: Channel,
}
Expand All @@ -55,8 +55,8 @@ impl<Device> PhyDeviceHandler<Device> {
dev: Device,
client_region: ExternallySharedRef<'static, [u8]>,
client_region_paddr: usize,
rx_ring_buffers: RingBuffers<'static, Use, fn() -> Result<(), !>>,
tx_ring_buffers: RingBuffers<'static, Use, fn() -> Result<(), !>>,
rx_ring_buffers: RingBuffers<'static, Use, fn() -> Result<(), Infallible>>,
tx_ring_buffers: RingBuffers<'static, Use, fn() -> Result<(), Infallible>>,
device_channel: Channel,
client_channel: Channel,
) -> Self {
Expand All @@ -75,7 +75,7 @@ impl<Device> PhyDeviceHandler<Device> {
}

impl<Device: phy::Device + IrqAck + HasMac> Handler for PhyDeviceHandler<Device> {
type Error = !;
type Error = Infallible;

fn notified(&mut self, channel: Channel) -> Result<(), Self::Error> {
if channel == self.device_channel || channel == self.client_channel {
Expand Down

0 comments on commit 26f6f5b

Please sign in to comment.