use shared Subject struct for Page and TabPage

This commit is contained in:
yggverse 2025-01-22 05:25:16 +02:00
parent 065bd8bfad
commit 5570b6fa85
4 changed files with 121 additions and 105 deletions

View file

@ -1,7 +1,6 @@
mod gemini;
use super::{Feature, Page};
use adw::TabPage;
use super::{Feature, Subject};
use gemini::Gemini;
use std::rc::Rc;
@ -14,9 +13,9 @@ impl Driver {
// Constructors
/// Build new `Self`
pub fn build(page: &Rc<Page>, tab_page: &TabPage) -> Self {
pub fn build(subject: &Rc<Subject>) -> Self {
Driver {
gemini: Gemini::init(page, tab_page),
gemini: Gemini::init(subject),
}
}
}