Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed Feb 18, 2023
1 parent 9ad5fc3 commit 971116d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
edition = "2021"
newline_style = "unix"
# comments
normalize_comments=true
wrap_comments=true
format_code_in_doc_comments=true
normalize_comments = true
#wrap_comments=true
format_code_in_doc_comments = true
# imports
imports_granularity="Crate"
group_imports="StdExternalCrate"
imports_granularity = "Crate"
group_imports = "StdExternalCrate"
# report
#report_fixme="Unnumbered"
#report_todo="Unnumbered"
2 changes: 1 addition & 1 deletion poem/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ which are disabled by default:
| anyhow | Integrate with [`anyhow`](https://crates.io/crates/anyhow) crate. |
| eyre06 | Integrate with version 0.6.x of the [`eyre`](https://crates.io/crates/eyre) crate. |
| i18n | Support for internationalization |
| acme | Support for ACME(Automatic Certificate Management Environment) |
| acme-native-roots | Support for ACME(Automatic Certificate Management Environment) |
| acme-webpki-roots | Support for ACME using webpki TLS roots rather than native TLS roots |
| tokio-metrics | Integrate with [`tokio-metrics`](https://crates.io/crates/tokio-metrics) crate. |
| embed | Integrate with [`rust-embed`](https://crates.io/crates/rust-embed) crate. |
Expand Down
3 changes: 2 additions & 1 deletion poem/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,8 @@
//! | anyhow | Integrate with the [`anyhow`](https://crates.io/crates/anyhow) crate. |
//! | eyre06 | Integrate with version 0.6.x of the [`eyre`](https://crates.io/crates/eyre) crate. |
//! | i18n | Support for internationalization |
//! | acme | Support for ACME(Automatic Certificate Management Environment) |
//! | acme-native-roots | Support for ACME(Automatic Certificate Management Environment) |
//! | acme-webpki-roots | Support for ACME using webpki TLS roots rather than native TLS roots |
//! | tokio-metrics | Integrate with the [`tokio-metrics`](https://crates.io/crates/tokio-metrics) crate. |
//! | embed | Integrate with [`rust-embed`](https://crates.io/crates/rust-embed) crate. |
//! | xml | Integrate with [`quick-xml`](https://crates.io/crates/quick-xml) crate. |
Expand Down
2 changes: 1 addition & 1 deletion poem/src/listener/acme/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl AcmeClient {
let client_builder = HttpsConnectorBuilder::new();
#[cfg(feature = "acme-native-roots")]
let client_builder1 = client_builder.with_native_roots();
#[cfg(feature = "acme-webpki-roots")]
#[cfg(all(feature = "acme-webpki-roots", not(feature = "acme-native-roots")))]
let client_builder1 = client_builder.with_webpki_roots();
let client =
Client::builder().build(client_builder1.https_or_http().enable_http1().build());
Expand Down

0 comments on commit 971116d

Please sign in to comment.