Skip to content

Commit

Permalink
#5: Fixed Clippy warnings for optional features
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-meissner committed Dec 18, 2024
1 parent cfc0bc8 commit 6ea7550
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
matrix:
target:
- thumbv7m-none-eabi
- thumbv8m.main-none-eabihf
- riscv32imac-unknown-none-elf
rust:
- stable
- beta
Expand Down
4 changes: 2 additions & 2 deletions src/guard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl<'a, B: Write + Read> CsMutexGuard<'a, B> {
}

#[cfg(feature = "cortex-m")]
impl<'a, B> RefGuard<B> for CsMutexGuard<'a, B>
impl<B> RefGuard<B> for CsMutexGuard<'_, B>
where
B: Write + Read<u8>,
{
Expand Down Expand Up @@ -96,7 +96,7 @@ impl<'a, B: Write + Read> SpinGuard<'a, B> {
}

#[cfg(feature = "spin")]
impl<'a, B> RefGuard<B> for SpinGuard<'a, B>
impl<B> RefGuard<B> for SpinGuard<'_, B>
where
B: Write + Read<u8>,
{
Expand Down

0 comments on commit 6ea7550

Please sign in to comment.