Skip to content

Commit

Permalink
docs(webpki-roots): simplify usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede authored and ctz committed Sep 27, 2024
1 parent 7edc915 commit 7fcdd6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webpki-roots/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//!
//! ```rust
//! let root_store = rustls::RootCertStore {
//! roots: webpki_roots::TLS_SERVER_ROOTS.iter().cloned().collect(),
//! roots: webpki_roots::TLS_SERVER_ROOTS.to_vec(),
//! };
//! ```
//!
Expand Down
2 changes: 1 addition & 1 deletion webpki-roots/tests/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const HEADER: &str = r#"//! A compiled-in copy of the root certificates trusted
//!
//! ```rust
//! let root_store = rustls::RootCertStore {
//! roots: webpki_roots::TLS_SERVER_ROOTS.iter().cloned().collect(),
//! roots: webpki_roots::TLS_SERVER_ROOTS.to_vec(),
//! };
//! ```
//!
Expand Down

0 comments on commit 7fcdd6d

Please sign in to comment.