Migrate to parking_lot

This commit is contained in:
micialware committed 2026-08-20 00:07:09 +03:00
1 parent bf805b79e5
commit 66f8a83dec
13 files changed
+85 -73

No files matched your search

+3 -2
View File
@@ -13,7 +13,8 @@ use iced::widget::{Column, button, column, container, row, rule, space, text, to
use iced::{Element, Fill, Task, Theme, alignment, keyboard};
use rodio::MixerDeviceSink;
use std::collections::HashSet;
use std::sync::{Arc, Mutex};
use std::sync::Arc;
use parking_lot::Mutex;
use tokio::task::spawn_blocking;
pub struct RepetitionState {
@@ -148,7 +149,7 @@ impl RepetitionState {
}
fn increment_counter(&mut self) {
let mut state = self.state.lock().unwrap();
let mut state = self.state.lock();
let id = self.settings.id;
let activity = state.activity.get_mut(&id);