Skip to content

Commit

Permalink
Fix typo: Default() => default()
Browse files Browse the repository at this point in the history
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
  • Loading branch information
NobodyXu authored and drahnr committed Feb 4, 2025
1 parent c59cb89 commit 040f599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dist/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ mod server {
let mut rng = OsRng;
let rsa_key = rsa::RsaPrivateKey::new(&mut rng, 2048)?;

let line_ending = rsa::pkcs8::LineEnding::Default();
let line_ending = rsa::pkcs8::LineEnding::default();
let sk_pkcs8 = rsa::pkcs8::EncodePrivateKey::to_pkcs8_pem(&rsa_key, line_ending)?;
let pk_pkcs8 =
rsa::pkcs8::EncodePublicKey::to_public_key_pem(rsa_key.as_ref(), line_ending)?;
Expand Down

0 comments on commit 040f599

Please # to comment.