mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
use shared Subject struct for Page and TabPage
This commit is contained in:
parent
065bd8bfad
commit
5570b6fa85
4 changed files with 121 additions and 105 deletions
|
|
@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue