Mark Unborrow as unsafe to implement

This commit is contained in:
Dario Nieuwenhuis
2021-05-19 23:21:31 +02:00
parent dc67d2f4a4
commit 105c8504b6
10 changed files with 37 additions and 37 deletions

View File

@ -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 {