diff --git a/rcgen/examples/simple.rs b/rcgen/examples/simple.rs index 6cbbd916..fea09381 100644 --- a/rcgen/examples/simple.rs +++ b/rcgen/examples/simple.rs @@ -28,7 +28,7 @@ fn main() -> Result<(), Box> { println!("{}", cert.serialize_private_key_pem()); std::fs::create_dir_all("certs/")?; fs::write("certs/cert.pem", pem_serialized.as_bytes())?; - fs::write("certs/cert.der", &der_serialized)?; + fs::write("certs/cert.der", der_serialized)?; fs::write( "certs/key.pem", &cert.serialize_private_key_pem().as_bytes(),