Mark Unborrow as unsafe to implement
This commit is contained in:
@ -16,7 +16,7 @@ macro_rules! peripherals {
|
||||
}
|
||||
|
||||
$(#[$cfg])?
|
||||
impl embassy::util::Unborrow for $name {
|
||||
unsafe impl embassy::util::Unborrow for $name {
|
||||
type Target = $name;
|
||||
#[inline]
|
||||
unsafe fn unborrow(self) -> $name {
|
||||
@ -78,9 +78,9 @@ macro_rules! unborrow {
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! impl_unborrow {
|
||||
macro_rules! unsafe_impl_unborrow {
|
||||
($type:ident) => {
|
||||
impl ::embassy::util::Unborrow for $type {
|
||||
unsafe impl ::embassy::util::Unborrow for $type {
|
||||
type Target = $type;
|
||||
#[inline]
|
||||
unsafe fn unborrow(self) -> Self::Target {
|
||||
|
Reference in New Issue
Block a user