Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Murmele committed Mar 16, 2024
1 parent 8994a0d commit 20332cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/blockdevice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ pub trait BlockDevice {
/// The errors that the `BlockDevice` can return. Must be debug formattable.
type Error: core::fmt::Debug;
/// Read one or more blocks, starting at the given block index.
async fn read(
fn read(
&self,
blocks: &mut [Block],
start_block_idx: BlockIdx,
reason: &str,
) -> Result<(), Self::Error>;
) -> impl core::future::Future<Output = Result<(), Self::Error>>;
/// Write one or more blocks, starting at the given block index.
async fn write(&self, blocks: &[Block], start_block_idx: BlockIdx) -> Result<(), Self::Error>;
fn write(&self, blocks: &[Block], start_block_idx: BlockIdx) -> impl core::future::Future<Output = Result<(), Self::Error>>;
/// Determine how many blocks this device can hold.
async fn num_blocks(&self) -> Result<BlockCount, Self::Error>;
fn num_blocks(&self) -> impl core::future::Future<Output = Result<BlockCount, Self::Error>>;
}

impl Block {
Expand Down
2 changes: 1 addition & 1 deletion src/sdcard/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
pub mod proto;

use crate::{trace, Block, BlockCount, BlockDevice, BlockIdx};
use core::{cell::RefCell, future::Future, pin::Pin};
use core::cell::RefCell;
use proto::*;

// ****************************************************************************
Expand Down

0 comments on commit 20332cc

Please sign in to comment.