Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Optimized file Update build.rs #3137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions linera-rpc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// Write the certificate to a file (PEM format)
let mut cert_file = out_dir.clone();
cert_file.push("self_signed_cert.pem");
let cert_file = format!("{}", cert_file.display());
let cert_file = cert_file.display().to_string();
let mut cert_file = std::fs::File::create(cert_file)?;
cert_file.write_all(cert.serialize_pem()?.as_bytes())?;

// Write the private key to a file (PEM format)
let mut key_file = out_dir.clone();
key_file.push("private_key.pem");
let key_file = format!("{}", key_file.display());
let key_file = key_file.display().to_string();
let mut key_file = std::fs::File::create(key_file)?;
key_file.write_all(cert.serialize_private_key_pem().as_bytes())?;

Expand Down
Loading