Skip to content

Commit

Permalink
Change steal() to a associated function
Browse files Browse the repository at this point in the history
  • Loading branch information
JalonWong committed Jun 16, 2023
1 parent ccff6eb commit a45ffcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generate/peripheral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub fn render(p_original: &Peripheral, index: &Index, config: &Config) -> Result
}

///Steal an instance of this peripheral
pub unsafe fn steal(&self) -> Self {
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
Expand Down Expand Up @@ -157,7 +157,7 @@ pub fn render(p_original: &Peripheral, index: &Index, config: &Config) -> Result
}

///Steal an instance of this peripheral
pub unsafe fn steal(&self) -> Self {
pub unsafe fn steal() -> Self {
Self { _marker: PhantomData }
}
}
Expand Down

0 comments on commit a45ffcc

Please sign in to comment.