return uncovered struct

This commit is contained in:
yggverse 2024-09-26 00:07:49 +03:00
parent 01a3e57a09
commit a1d477ddce

View file

@ -1,5 +1,4 @@
use gtk::glib::GString; use gtk::glib::GString;
use std::cell::RefCell;
pub enum Mime { pub enum Mime {
Undefined, Undefined,
@ -15,12 +14,12 @@ pub struct Meta {
} }
impl Meta { impl Meta {
pub fn new() -> RefCell<Meta> { pub fn new() -> Meta {
RefCell::new(Self { Self {
title: GString::new(), title: GString::new(),
description: GString::new(), description: GString::new(),
mime: Mime::Undefined, mime: Mime::Undefined,
progress_fraction: 0.0, progress_fraction: 0.0,
}) }
} }
} }