improve comment and error

This commit is contained in:
houseme
2025-05-16 17:00:56 +08:00
parent 60635aeb65
commit 6659b77f9a
29 changed files with 228 additions and 235 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ pub fn load_private_key(filename: &str) -> io::Result<PrivateKeyDer<'static>> {
/// error function
pub fn certs_error(err: String) -> Error {
Error::new(io::ErrorKind::Other, err)
Error::other(err)
}
/// Load all certificates and private keys in the directory