mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
make members public (in lib context)
This commit is contained in:
parent
9cf434fdab
commit
d0acac1686
1 changed files with 2 additions and 10 deletions
|
|
@ -7,8 +7,8 @@ pub enum Level {
|
|||
}
|
||||
|
||||
pub struct Header {
|
||||
value: GString,
|
||||
level: Level,
|
||||
pub value: GString,
|
||||
pub level: Level,
|
||||
}
|
||||
|
||||
impl Header {
|
||||
|
|
@ -44,12 +44,4 @@ impl Header {
|
|||
value: GString::from(value.as_str()),
|
||||
})
|
||||
}
|
||||
|
||||
pub fn level(&self) -> &Level {
|
||||
&self.level
|
||||
}
|
||||
|
||||
pub fn value(&self) -> &str {
|
||||
self.value.as_str()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue