summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/amalgamation.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-08-06 11:19:52 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-08-06 11:19:52 +0200
commitaaeb3447b692819bfb16990dfdd44d384eff1e14 (patch)
tree48fdab51ce484781d1f970981b63dd1490006545 /openpgp/src/cert/amalgamation.rs
parent30fa2d80ac627324350f1533c5630f25ecc9cedc (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.rs')
-rw-r--r--openpgp/src/cert/amalgamation.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/amalgamation.rs b/openpgp/src/cert/amalgamation.rs
index 8f887166..42a0fc5f 100644
--- a/openpgp/src/cert/amalgamation.rs
+++ b/openpgp/src/cert/amalgamation.rs
@@ -858,14 +858,14 @@ impl<'a, C> ComponentAmalgamation<'a, C> {
/// // Make Alice a designated revoker for Bob.
/// let (bob, _) =
/// CertBuilder::general_purpose(None, Some("bob@example.org"))
- /// .set_revocation_keys(vec![ (&alice).into() ])
+ /// .set_revocation_keys(vec![(&alice).into()])
/// .generate()?;
///
/// // Make sure Alice is listed as a designated revoker for Bob
/// // on a component.
/// assert_eq!(bob.with_policy(p, None)?.primary_userid()?.revocation_keys(p)
/// .collect::<Vec<&RevocationKey>>(),
- /// vec![ &(&alice).into() ]);
+ /// vec![&(&alice).into()]);
/// # Ok(()) }
/// ```
pub fn revocation_keys(&self, policy: &dyn Policy)