use optionals, remove undefined enums

This commit is contained in:
yggverse 2024-09-27 20:38:55 +03:00
parent 11b9dc94d3
commit b3c7545717
6 changed files with 52 additions and 47 deletions

View file

@ -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!()
}
}
}