diff --git a/src/structs.rs b/src/structs.rs index 72b7c1b..fe222de 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -1,15 +1,15 @@ pub struct MOTD { - title: Option, + title: String, } impl MOTD { pub fn new(motd_title: String) -> MOTD { return MOTD { - title: Some(String::from(motd_title)), + title: String::from(motd_title), }; } pub fn print(&self) { - println!("[*] {}", &self.title.as_ref().unwrap().trim()) + println!("[*] {}", &self.title.trim()) } }