From 0633512f86eaf17e9852e26a5671e70a3bc56b8a Mon Sep 17 00:00:00 2001 From: Emii Tatsuo Date: Wed, 25 Nov 2020 16:04:04 -0500 Subject: [PATCH] Remove deprecated gemini_mime function --- src/gencert.rs | 8 ++++++++ src/lib.rs | 5 ----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/gencert.rs b/src/gencert.rs index 224c65b..33ff027 100644 --- a/src/gencert.rs +++ b/src/gencert.rs @@ -1,3 +1,11 @@ +//! Tools for automatically generating certificates +//! +//! Really, the only thing you will probably ever need from this module if you aren't +//! developing the project is the [`CertGenMode`] enum, which can be passed to +//! [`Server::set_certificate_generation_mode()`]. You won't even need to call any +//! methods on it or anything. +//! +//! [`Server::set_certificate_generation_mode()`]: crate::Server::set_certificate_generation_mode() use anyhow::{bail, Context, Result}; use rustls::ServerConfig; diff --git a/src/lib.rs b/src/lib.rs index caa0073..bbb3153 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -542,11 +542,6 @@ lazy_static! { pub static ref GEMINI_MIME: Mime = GEMINI_MIME_STR.parse().unwrap(); } -#[deprecated(note = "Use `GEMINI_MIME` instead", since = "0.3.0")] -pub fn gemini_mime() -> Result { - Ok(GEMINI_MIME.clone()) -} - /// A client cert verifier that accepts all connections /// /// Unfortunately, rustls doesn't provide a ClientCertVerifier that accepts self-signed