mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
replace arc with rc
This commit is contained in:
parent
a0e923eb7d
commit
c843e5b7c0
62 changed files with 317 additions and 334 deletions
|
|
@ -6,7 +6,7 @@ use redirect::Redirect;
|
|||
|
||||
use gtk::glib::GString;
|
||||
use sqlite::Transaction;
|
||||
use std::{cell::RefCell, sync::Arc};
|
||||
use std::{cell::RefCell, rc::Rc};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum Status {
|
||||
|
|
@ -39,8 +39,8 @@ pub struct Meta {
|
|||
impl Meta {
|
||||
// Constructors
|
||||
|
||||
pub fn new_arc(status: Status, title: GString) -> Arc<Self> {
|
||||
Arc::new(Self {
|
||||
pub fn new_rc(status: Status, title: GString) -> Rc<Self> {
|
||||
Rc::new(Self {
|
||||
status: RefCell::new(status),
|
||||
title: RefCell::new(title),
|
||||
redirect: RefCell::new(None),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue