rust-embedded / bare-metal

Abstractions common to microcontrollers
Apache License 2.0
114 stars 16 forks source link

Use CriticalSection<'cs> instead of &'cs CriticalSection. #20

Closed m-ou-se closed 4 years ago

m-ou-se commented 4 years ago

Fixes #7.

A CriticalSection<'cs> has a size of zero unlike a &'cs CriticalSection, which has the size of a pointer.

therealprof commented 4 years ago

bors ping

jonas-schievink commented 4 years ago

bors r+

bors[bot] commented 4 years ago

Build succeeded