Remove deprecated gemini_mime function
This commit is contained in:
parent
1766ab4c9c
commit
0633512f86
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue