From 079e72494822518ecba19c3b1a58efc61e527b30 Mon Sep 17 00:00:00 2001 From: EAimTY Date: Thu, 25 May 2023 22:03:27 +0900 Subject: [PATCH] suppress errors in native certificates --- tuic-client/src/main.rs | 2 ++ tuic-client/src/utils.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tuic-client/src/main.rs b/tuic-client/src/main.rs index cb79481..b6017ee 100644 --- a/tuic-client/src/main.rs +++ b/tuic-client/src/main.rs @@ -64,6 +64,8 @@ pub enum Error { Connection(#[from] ConnectionError), #[error(transparent)] Model(#[from] ModelError), + #[error("load native certificates error: {0}")] + LoadNativeCerts(IoError), #[error(transparent)] Rustls(#[from] RustlsError), #[error("timeout establishing connection")] diff --git a/tuic-client/src/utils.rs b/tuic-client/src/utils.rs index e84a0cc..5292a5e 100644 --- a/tuic-client/src/utils.rs +++ b/tuic-client/src/utils.rs @@ -30,8 +30,8 @@ pub fn load_certs(paths: Vec, disable_native: bool) -> Result