make GEMINI_MIME_STR public

This commit is contained in:
panicbit 2020-11-14 00:53:54 +01:00
parent 9b9955827d
commit 015ea42840

View file

@ -202,9 +202,11 @@ fn load_key() -> Result<PrivateKey> {
Ok(key) Ok(key)
} }
const GEMINI_MIME_STR: &str = "text/gemini"; /// Mime for Gemini documents
pub const GEMINI_MIME_STR: &str = "text/gemini";
lazy_static! { lazy_static! {
/// Mime for Gemini documents ("text/gemini")
pub static ref GEMINI_MIME: Mime = GEMINI_MIME_STR.parse().expect("northstar BUG"); pub static ref GEMINI_MIME: Mime = GEMINI_MIME_STR.parse().expect("northstar BUG");
} }