Skip to content

Commit a45ffcc

Browse files
committed
Change steal() to a associated function
1 parent ccff6eb commit a45ffcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/generate/peripheral.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub fn render(p_original: &Peripheral, index: &Index, config: &Config) -> Result
9393
}
9494

9595
///Steal an instance of this peripheral
96-
pub unsafe fn steal(&self) -> Self {
96+
pub unsafe fn steal() -> Self {
9797
Self { _marker: PhantomData }
9898
}
9999
}
@@ -157,7 +157,7 @@ pub fn render(p_original: &Peripheral, index: &Index, config: &Config) -> Result
157157
}
158158

159159
///Steal an instance of this peripheral
160-
pub unsafe fn steal(&self) -> Self {
160+
pub unsafe fn steal() -> Self {
161161
Self { _marker: PhantomData }
162162
}
163163
}

0 commit comments

Comments
 (0)