We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5143880 commit eb2b34fCopy full SHA for eb2b34f
2 files changed
gemini/src/known_hosts.rs
@@ -17,7 +17,7 @@ pub enum CertificateError {
17
#[error("Generic certificate error")]
18
GenericError,
19
}
20
-pub struct Certificate<'a>(&'a str);
+
21
pub trait KnownHostsRepo: std::fmt::Debug {
22
fn get(&self, host: &str) -> Option<&str>;
23
fn insert(&mut self, host: &str, sha: &str) -> bool;
gemini/src/lib.rs
@@ -2,5 +2,5 @@ mod client;
2
pub mod known_hosts;
3
mod parser;
4
pub use client::*;
5
-pub use known_hosts::{Certificate, CertificateError};
+pub use known_hosts::CertificateError;
6
pub use parser::*;
0 commit comments