Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
filmor committed Feb 13, 2024
1 parent 39e0106 commit c02e991
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions rustler/src/schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ macro_rules! impls {
($($variant:ident $func_name:ident($($arg:ident : $ty:ty,)*);)*) => {
impl<N: crate::Nif, T, A, B, C, D, E, F, G> Schedule<N, T, A, B, C, D, E, F, G> {
$(#[allow(clippy::many_single_char_names)]
#[allow(clippy::too_many_arguments)]
#[inline]
pub fn $func_name(flags: SchedulerFlags, $($arg: $ty),*) -> Self {
Self::$variant(PhantomData, flags, $($arg),*)
Expand Down
5 changes: 1 addition & 4 deletions rustler_tests/native/rustler_test/src/test_schedule.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
use rustler::{reschedule, Schedule, SchedulerFlags};

#[rustler::nif]
fn scheduled_fac<'a>(
input: u8,
result: Option<u32>,
) -> Schedule<scheduled_fac, u32, u8, Option<u32>> {
fn scheduled_fac(input: u8, result: Option<u32>) -> Schedule<scheduled_fac, u32, u8, Option<u32>> {
let result = result.unwrap_or(1);
if input == 0 {
Schedule::Return(result)
Expand Down

0 comments on commit c02e991

Please sign in to comment.