From 1cc463283f377ae64d6bc9e3600955011183f554 Mon Sep 17 00:00:00 2001 From: tbro <48967308+tbro@users.noreply.github.com> Date: Mon, 13 Nov 2023 16:29:12 -0600 Subject: [PATCH] Update rcgen/examples/simple.rs Co-authored-by: Daniel McCarney --- rcgen/examples/simple.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcgen/examples/simple.rs b/rcgen/examples/simple.rs index fea09381..63a0ec70 100644 --- a/rcgen/examples/simple.rs +++ b/rcgen/examples/simple.rs @@ -31,7 +31,7 @@ fn main() -> Result<(), Box> { fs::write("certs/cert.der", der_serialized)?; fs::write( "certs/key.pem", - &cert.serialize_private_key_pem().as_bytes(), + cert.serialize_private_key_pem().as_bytes(), )?; fs::write("certs/key.der", &cert.serialize_private_key_der())?; Ok(())