Skip to content

Commit

Permalink
sign: fix clippy get-first warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cpu committed Oct 24, 2023
1 parent ecc6cde commit 8cf2594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rustls/src/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl CertifiedKey {

/// The end-entity certificate.
pub fn end_entity_cert(&self) -> Result<&key::Certificate, SignError> {
self.cert.get(0).ok_or(SignError(()))
self.cert.first().ok_or(SignError(()))
}
}

Expand Down

0 comments on commit 8cf2594

Please sign in to comment.