diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-08-06 11:19:52 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-08-06 11:19:52 +0200 |
commit | aaeb3447b692819bfb16990dfdd44d384eff1e14 (patch) | |
tree | 48fdab51ce484781d1f970981b63dd1490006545 /openpgp/src/cert/amalgamation/key | |
parent | 30fa2d80ac627324350f1533c5630f25ecc9cedc (diff) |
openpgp: Fix formatting of vector and array literals in examples.
- Align our examples with how the code in the examples of the Rust
standard library is formatted. We are writing examples in the
hope that downstream users will copy fragments of them, therefore
using idiomatic formatting in these snippets is important.
Diffstat (limited to 'openpgp/src/cert/amalgamation/key')
-rw-r--r-- | openpgp/src/cert/amalgamation/key/iter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/amalgamation/key/iter.rs b/openpgp/src/cert/amalgamation/key/iter.rs index d14fdc0b..f50a8118 100644 --- a/openpgp/src/cert/amalgamation/key/iter.rs +++ b/openpgp/src/cert/amalgamation/key/iter.rs @@ -365,7 +365,7 @@ impl<'a, P, R> KeyAmalgamationIter<'a, P, R> /// # let (cert, _) = /// # CertBuilder::general_purpose(None, Some("alice@example.org")) /// # .generate()?; - /// # let key_handles = &[ cert.primary_key().key_handle() ][..]; + /// # let key_handles = &[cert.primary_key().key_handle()][..]; /// # let mut i = 0; /// for ka in cert.keys().key_handles(key_handles.iter()) { /// // Use it. @@ -1429,7 +1429,7 @@ impl<'a, P, R> ValidKeyAmalgamationIter<'a, P, R> /// # let (cert, _) = /// # CertBuilder::general_purpose(None, Some("alice@example.org")) /// # .generate()?; - /// # let key_handles = &[ cert.primary_key().key_handle() ][..]; + /// # let key_handles = &[cert.primary_key().key_handle()][..]; /// # let mut i = 0; /// for ka in cert.keys().with_policy(p, None).key_handles(key_handles.iter()) { /// // Use it. |