From 7d987dc91fc1fb0df60e91a15929da0f8600d2c6 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Tue, 16 Sep 2025 08:25:03 +0200 Subject: [PATCH] refactor: replace Vec with slice --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 75eceda..c6d0dda 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -53,7 +53,7 @@ fn asn1time(time: &SystemTime) -> Asn1Time { .unwrap() } -pub fn save_p12_file(path: &Path, password: &str, certs: &Vec, private_key: Option) -> Result<(), String> { +pub fn save_p12_file(path: &Path, password: &str, certs: &[Certificate], private_key: Option) -> Result<(), String> { if certs.is_empty() { return Err("Invalid chain".to_owned()); }