Remove Report type in iced_sentinel

This commit is contained in:
Héctor Ramón Jiménez 2024-02-27 14:46:57 +01:00
parent dd36893f7a
commit 7f7c5ea337
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 9 additions and 15 deletions

View file

@ -44,7 +44,6 @@ mod internal {
use iced_sentinel::client::{self, Client};
use iced_sentinel::timing::{self, Timing};
use iced_sentinel::Report;
use once_cell::sync::Lazy;
use std::sync::{Mutex, MutexGuard};
@ -96,10 +95,10 @@ mod internal {
impl Timer {
pub fn finish(self) {
lock().sentinel.report(Report::Timing(Timing {
lock().sentinel.report_timing(Timing {
stage: self.stage,
duration: self.start.elapsed(),
}));
});
}
}