crabmail

Static HTML email archive viewer in Rust
git clone git://git.alexwennerberg.com/crabmail
Log | Files | Refs | README | LICENSE

commit 2622eca912df1010de745b73fa2e0dd90c123ab1
parent 0aa13a00f893c7666f3ef992d00043da0814460d
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Wed, 12 Jan 2022 17:23:31 -0800

todo defaults

Diffstat:
Msrc/config.rs | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/config.rs b/src/config.rs @@ -21,6 +21,7 @@ pub struct Config { } impl Config { + // TODO defaults here pub fn match_kv(&mut self, key: &str, value: &str) { match key { "email_fmt" => self.email_fmt = value.to_string(), @@ -39,6 +40,7 @@ pub struct Subsection { } impl Subsection { + // TODO defaults here fn match_kv(&mut self, key: &str, value: &str) { match key { "title" => self.title = value.to_string(),