diff options
author | 2020-10-21 20:24:06 +0200 | |
---|---|---|
committer | 2020-10-21 20:25:22 +0200 | |
commit | d2ac641c3f2fb8f6f189d3650fed25063049c80b (patch) | |
tree | 98e6293da6cc4fd407d610e4076c4b54974b09ce /macros/src/codegen/util.rs | |
parent | f076b33bb91e9cd2cb1f71ba22ebfebab085d3a8 (diff) | |
download | rtic-d2ac641c3f2fb8f6f189d3650fed25063049c80b.tar.gz rtic-d2ac641c3f2fb8f6f189d3650fed25063049c80b.tar.zst rtic-d2ac641c3f2fb8f6f189d3650fed25063049c80b.zip |
Hide lock type better to not collide with user types
Diffstat (limited to 'macros/src/codegen/util.rs')
-rw-r--r-- | macros/src/codegen/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macros/src/codegen/util.rs b/macros/src/codegen/util.rs index 887ee3bd..d78da61d 100644 --- a/macros/src/codegen/util.rs +++ b/macros/src/codegen/util.rs @@ -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; |