Remove deprecated gemini_mime function

This commit is contained in:
Emii Tatsuo 2020-11-25 16:04:04 -05:00
parent 1766ab4c9c
commit 0633512f86
Signed by: Emi
GPG Key ID: 68FAB2E2E6DFC98B
2 changed files with 8 additions and 5 deletions

View File

@ -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;

View File

@ -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<Mime> {
Ok(GEMINI_MIME.clone())
}
/// A client cert verifier that accepts all connections
///
/// Unfortunately, rustls doesn't provide a ClientCertVerifier that accepts self-signed