mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
make data optional on empty
This commit is contained in:
parent
a0827e0425
commit
10205f3147
2 changed files with 13 additions and 12 deletions
|
|
@ -22,9 +22,9 @@ use glib::Priority;
|
|||
pub const MAX_LEN: usize = 0x400; // 1024
|
||||
|
||||
pub struct Meta {
|
||||
data: Data,
|
||||
mime: Option<Mime>,
|
||||
status: Status,
|
||||
data: Option<Data>,
|
||||
mime: Option<Mime>,
|
||||
// @TODO
|
||||
// charset: Charset,
|
||||
// language: Language,
|
||||
|
|
@ -127,7 +127,7 @@ impl Meta {
|
|||
&self.status
|
||||
}
|
||||
|
||||
pub fn data(&self) -> &Data {
|
||||
pub fn data(&self) -> &Option<Data> {
|
||||
&self.data
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue