From d0acac1686ae42b66898f502af56469377294dfa Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 12 Oct 2024 09:05:17 +0300 Subject: [PATCH] make members public (in lib context) --- .../page/content/text/gemini/reader/parser/header.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/app/browser/window/tab/item/page/content/text/gemini/reader/parser/header.rs b/src/app/browser/window/tab/item/page/content/text/gemini/reader/parser/header.rs index 5e7ce2d0..3f5b193a 100644 --- a/src/app/browser/window/tab/item/page/content/text/gemini/reader/parser/header.rs +++ b/src/app/browser/window/tab/item/page/content/text/gemini/reader/parser/header.rs @@ -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() - } }