replace arc with rc

This commit is contained in:
yggverse 2024-11-08 05:21:08 +02:00
parent a0e923eb7d
commit c843e5b7c0
62 changed files with 317 additions and 334 deletions

View file

@ -3,17 +3,17 @@ mod widget;
use widget::Widget;
use gtk::WindowControls;
use std::sync::Arc;
use std::rc::Rc;
pub struct Control {
widget: Arc<Widget>,
widget: Rc<Widget>,
}
impl Control {
// Construct
pub fn new_arc() -> Arc<Self> {
Arc::new(Self {
widget: Widget::new_arc(),
pub fn new_rc() -> Rc<Self> {
Rc::new(Self {
widget: Widget::new_rc(),
})
}