Skip to content

Commit

Permalink
cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
bmisiak committed Feb 26, 2024
1 parent 4f609c8 commit dc3a302
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ mod amx_arguments;
mod scheduling;
mod timer;
use scheduling::{
delete_timer, insert_and_schedule_timer, next_timer_due_for_triggering,
remove_timers,
delete_timer, insert_and_schedule_timer, next_timer_due_for_triggering, remove_timers,
Repeat::{DontRepeat, Every},
TimerScheduling, TriggeringError,
};
Expand Down Expand Up @@ -46,7 +45,7 @@ impl PreciseTimers {

let timer = Timer {
passed_arguments,
amx_identifier: AmxIdent::from(amx.amx().as_ptr()),
amx_identifier: amx.amx().as_ptr().into(),
amx_callback_index: amx.find_public(&callback_name.to_string())?,
};
let scheduling = TimerScheduling {
Expand Down Expand Up @@ -180,7 +179,8 @@ samp::initialize_plugin!(

let _ = fern::Dispatch::new()
.format(|callback, message, record| {
callback.finish(format_args!("samp-precise-timers {}: {}", record.level(), message));
let level = record.level();
callback.finish(format_args!("samp-precise-timers {level}: {message}"));
})
.chain(samp_logprintf)
.apply();
Expand Down

0 comments on commit dc3a302

Please sign in to comment.