Skip to content

Commit

Permalink
fix doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Aug 29, 2023
1 parent f5466e2 commit 3657a7d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain:
- { name: msrv, version: '1.66' }
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
name: Clippy
runs-on: ubuntu-latest
permissions:
contents: read
checks: write

steps:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ let contact = vec!["mailto:foo@bar.com".to_string()];

// Generate a private key and register an account with your ACME provider.
// You should write it to disk any use `load_account` afterwards.
let acc = dir.register_account(contact.clone())?;
let acc = dir.register_account(Some(contact.clone()))?;

// Example of how to load an account from string:
let privkey = acc.acme_private_key_pem()?;
let acc = dir.load_account(&privkey, contact)?;
let acc = dir.load_account(&privkey, Some(contact))?;

// Order a new TLS certificate for a domain.
let mut ord_new = acc.new_order("mydomain.io", &[])?;
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
//!
//! // Generate a private key and register an account with your ACME provider.
//! // You should write it to disk any use `load_account` afterwards.
//! let acc = dir.register_account(contact.clone())?;
//! let acc = dir.register_account(Some(contact.clone()))?;
//!
//! // Example of how to load an account from string:
//! let privkey = acc.acme_private_key_pem()?;
//! let acc = dir.load_account(&privkey, contact)?;
//! let acc = dir.load_account(&privkey, Some(contact))?;
//!
//! // Order a new TLS certificate for a domain.
//! let mut ord_new = acc.new_order("mydomain.io", &[])?;
Expand Down

0 comments on commit 3657a7d

Please sign in to comment.