Skip to content

Commit

Permalink
fix: 🐛 Implement clippy nitpicks
Browse files Browse the repository at this point in the history
  • Loading branch information
berkus committed Oct 5, 2024
1 parent 342fdea commit d3203e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion machine/src/exception/asynchronous/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ where
}
}

impl<'irq_context> IRQContext<'irq_context> {
impl IRQContext<'_> {
/// Creates an IRQContext token.
///
/// # Safety
Expand Down
4 changes: 2 additions & 2 deletions machine/src/platform/raspberrypi/device_driver/bcm/gpio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ impl<'outer> Pin<'outer, Uninitialized> {
}
}

impl<'outer> Pin<'outer, Output> {
impl Pin<'_, Output> {
/// Sets (turns on) this pin.
pub fn set(&mut self) {
self.inner.lock(|inner| inner.set_pin(self.pin));
Expand All @@ -352,7 +352,7 @@ impl<'outer> Pin<'outer, Output> {

pub type Level = bool;

impl<'outer> Pin<'outer, Input> {
impl Pin<'_, Input> {
/// Reads the pin's value. Returns `true` if the level is high and `false`
/// if the level is low.
pub fn level(&self) -> Level {
Expand Down
2 changes: 1 addition & 1 deletion machine/src/write_to.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl<'a> WriteTo<'a> {
}
}

impl<'a> fmt::Write for WriteTo<'a> {
impl fmt::Write for WriteTo<'_> {
fn write_str(&mut self, s: &str) -> fmt::Result {
if self.used > self.buffer.len() {
return Err(fmt::Error);
Expand Down

0 comments on commit d3203e3

Please sign in to comment.