remove async dependencies

This commit is contained in:
yggverse 2025-07-23 02:27:48 +03:00
parent e2b0cd6b0d
commit b187f36028
33 changed files with 120 additions and 129 deletions

View file

@ -13,12 +13,12 @@ pub use item::Item;
use menu::Menu;
use sourceview::prelude::IsA;
use sqlite::Transaction;
use std::{cell::RefCell, collections::HashMap, rc::Rc, sync::Arc};
use std::{cell::RefCell, collections::HashMap, rc::Rc};
// Main
pub struct Tab {
window_action: Rc<WindowAction>,
profile: Arc<Profile>,
profile: Rc<Profile>,
index: Rc<RefCell<HashMap<TabPage, Rc<Item>>>>,
pub action: Rc<Action>,
pub tab_view: TabView,
@ -28,7 +28,7 @@ impl Tab {
// Constructors
/// Build new `Self`
pub fn build(profile: &Arc<Profile>, window_action: &Rc<WindowAction>) -> Self {
pub fn build(profile: &Rc<Profile>, window_action: &Rc<WindowAction>) -> Self {
let action = Rc::new(Action::new());
// Init empty HashMap index