diff options
| author | Jorge Aparicio <jorge@japaric.io> | 2017-07-18 20:17:09 -0500 |
|---|---|---|
| committer | Jorge Aparicio <jorge@japaric.io> | 2017-07-18 20:17:09 -0500 |
| commit | 877a32448fa9933d6f60ae1f25551751d4d651a8 (patch) | |
| tree | 2c1879f2bd0615eb4e98919b6b80f97d5b13aba3 /src/lib.rs | |
| parent | 97a7e38db7eb0643a6334aba30077622d09e5c85 (diff) | |
make compatible with the unsafe_code lint
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 2 insertions, 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( |
