mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
use optionals, remove undefined enums
This commit is contained in:
parent
11b9dc94d3
commit
b3c7545717
6 changed files with 52 additions and 47 deletions
|
|
@ -10,13 +10,11 @@ use gtk::{
|
|||
};
|
||||
|
||||
pub enum Mime {
|
||||
Undefined,
|
||||
TextGemini,
|
||||
TextPlain,
|
||||
}
|
||||
|
||||
pub struct Content {
|
||||
mime: Mime,
|
||||
widget: Box,
|
||||
}
|
||||
|
||||
|
|
@ -24,7 +22,6 @@ impl Content {
|
|||
// Construct
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
mime: Mime::Undefined,
|
||||
widget: Box::builder().orientation(Orientation::Vertical).build(),
|
||||
}
|
||||
}
|
||||
|
|
@ -44,9 +41,6 @@ impl Content {
|
|||
Mime::TextPlain => {
|
||||
todo!()
|
||||
}
|
||||
Mime::Undefined => {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue