mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 06:15:45 +01:00
make compatible with the unsafe_code lint
This commit is contained in:
parent
97a7e38db7
commit
877a32448f
2 changed files with 12 additions and 0 deletions
|
|
@ -219,6 +219,7 @@ where
|
|||
macro_rules! task {
|
||||
($NAME:ident, $body:path) => {
|
||||
#[allow(non_snake_case)]
|
||||
#[allow(unsafe_code)]
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn $NAME() {
|
||||
let f: fn(&mut $crate::Threshold, ::$NAME::Resources) = $body;
|
||||
|
|
@ -237,6 +238,7 @@ macro_rules! task {
|
|||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[allow(unsafe_code)]
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn $NAME() {
|
||||
let f: fn(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue