Hide lock type better to not collide with user types

This commit is contained in:
Emil Fresk 2020-10-21 20:24:06 +02:00
parent f076b33bb9
commit d2ac641c3f

View file

@ -53,7 +53,7 @@ pub fn impl_mutex(
type T = #ty;
#[inline(always)]
fn lock<R>(&mut self, f: impl FnOnce(&mut #ty) -> R) -> R {
fn lock<RTIC_INTERNAL_R>(&mut self, f: impl FnOnce(&mut #ty) -> RTIC_INTERNAL_R) -> RTIC_INTERNAL_R {
/// Priority ceiling
const CEILING: u8 = #ceiling;