Skip to content

Commit

Permalink
wireman(core): Remove must use arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Reiter committed Sep 17, 2024
1 parent 9fbb312 commit db43ccb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions wireman-core/src/client/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ pub struct TlsConfig(pub(super) ClientTlsConfig);

impl TlsConfig {
/// Create a new `TlsConfig` with native certificate.
#[must_use]
pub fn native() -> Result<Self> {
Ok(Self(ClientTlsConfig::new().with_enabled_roots()))
}

/// Create a new `TlsConfig` with a custom certificate.
#[must_use]
pub fn custom(cert_path: String) -> Result<Self> {
let pem = std::fs::read_to_string(cert_path).map_err(Error::LoadTLSCertificateError)?;
let ca = Certificate::from_pem(pem);
Expand Down

0 comments on commit db43ccb

Please sign in to comment.