mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
define ptr container outside
This commit is contained in:
parent
7b2c07ac45
commit
a5fc2a7475
58 changed files with 230 additions and 272 deletions
|
|
@ -6,7 +6,7 @@ use redirect::Redirect;
|
|||
|
||||
use gtk::glib::GString;
|
||||
use sqlite::Transaction;
|
||||
use std::{cell::RefCell, rc::Rc};
|
||||
use std::cell::RefCell;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum Status {
|
||||
|
|
@ -39,13 +39,13 @@ pub struct Meta {
|
|||
impl Meta {
|
||||
// Constructors
|
||||
|
||||
pub fn new_rc(status: Status, title: GString) -> Rc<Self> {
|
||||
Rc::new(Self {
|
||||
pub fn new(status: Status, title: GString) -> Self {
|
||||
Self {
|
||||
status: RefCell::new(status),
|
||||
title: RefCell::new(title),
|
||||
redirect: RefCell::new(None),
|
||||
redirect_count: RefCell::new(None),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// Setters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue