summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/amalgamation/key/iter.rs
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2020-12-11 18:05:58 +0100
committerAzul <azul@riseup.net>2020-12-11 18:09:09 +0100
commit9675e949909aef163dea230ad80ee7df1cba1ff8 (patch)
tree6b89dfd3dd98a1393966ddfd4ec79181bb648397 /openpgp/src/cert/amalgamation/key/iter.rs
parente3d65e26e284b7a77af9f3b713790f8a98bc417f (diff)
openpgp: Standardize fn main() in doctests.
- Avoid the additional `fn f()`.
Diffstat (limited to 'openpgp/src/cert/amalgamation/key/iter.rs')
-rw-r--r--openpgp/src/cert/amalgamation/key/iter.rs30
1 files changed, 10 insertions, 20 deletions
diff --git a/openpgp/src/cert/amalgamation/key/iter.rs b/openpgp/src/cert/amalgamation/key/iter.rs
index edc98f57..0601c2f0 100644
--- a/openpgp/src/cert/amalgamation/key/iter.rs
+++ b/openpgp/src/cert/amalgamation/key/iter.rs
@@ -261,8 +261,7 @@ impl<'a, P, R> KeyAmalgamationIter<'a, P, R>
/// # use sequoia_openpgp as openpgp;
/// # use openpgp::Result;
/// # use openpgp::cert::prelude::*;
- /// # fn main() { f().unwrap(); }
- /// # fn f() -> Result<()> {
+ /// # fn main() -> Result<()> {
/// # let (cert, _) =
/// # CertBuilder::general_purpose(None, Some("alice@example.org"))
/// # .generate()?;
@@ -298,8 +297,7 @@ impl<'a, P, R> KeyAmalgamationIter<'a, P, R>
/// # use sequoia_openpgp as openpgp;
/// # use openpgp::Result;
/// # use openpgp::cert::prelude::*;
- /// # fn main() { f().unwrap(); }
- /// # fn f() -> Result<()> {
+ /// # fn main() -> Result<()> {
/// # let (cert, _) =
/// # CertBuilder::general_purpose(None, Some("alice@example.org"))
/// # .generate()?;
@@ -342,8 +340,7 @@ impl<'a, P, R> KeyAmalgamationIter<'a, P, R>
/// # use sequoia_openpgp as openpgp;
/// # use openpgp::Result;
/// # use openpgp::cert::prelude::*;
- /// # fn main() { f().unwrap(); }
- /// # fn f() -> Result<()> {
+ /// # fn main() -> Result<()> {
/// # let (cert, _) =
/// # CertBuilder::general_purpose(None, Some("alice@example.org"))
/// # .generate()?;
@@ -387,8 +384,7 @@ impl<'a, P, R> KeyAmalgamationIter<'a, P, R>
/// # use sequoia_openpgp as openpgp;
/// # use openpgp::Result;
/// # use openpgp::cert::prelude::*;
- /// # fn main() { f().unwrap(); }
- /// # fn f() -> Result<()> {
+ /// # fn main() -> Result<()> {
/// # let (cert, _) =
/// # CertBuilder::general_purpose(None, Some("alice@example.org"))
/// # .generate()?;
@@ -459,8 +455,7 @@ impl<'a, P, R> KeyAmalgamationIter<'a, P, R>
/// # use openpgp::Result;
/// # use openpgp::cert::prelude::*;
/// #
- /// # fn main() { f().unwrap(); }
- /// # fn f() -> Result<()> {
+ /// # fn main() -> Result<()> {
/// # let (cert, _) = CertBuilder::new()
/// # .add_signing_subkey()
/// # .add_certification_subkey()
@@ -1298,8 +1293,7 @@ impl<'a, P, R> ValidKeyAmalgamationIter<'a, P, R>
/// # use openpgp::cert::prelude::*;
/// use openpgp::policy::StandardPolicy;
///
- /// # fn main() { f().unwrap(); }
- /// # fn f() -> Result<()> {
+ /// # fn main() -> Result<()> {
/// # let (cert, _) =
/// # CertBuilder::general_purpose(None, Some("alice@example.org"))
/// # .generate()?;
@@ -1356,8 +1350,7 @@ impl<'a, P, R> ValidKeyAmalgamationIter<'a, P, R>
/// # use openpgp::cert::prelude::*;
/// use openpgp::policy::StandardPolicy;
///
- /// # fn main() { f().unwrap(); }
- /// # fn f() -> Result<()> {
+ /// # fn main() -> Result<()> {
/// let p = &StandardPolicy::new();
///
/// # let (cert, _) =
@@ -1403,8 +1396,7 @@ impl<'a, P, R> ValidKeyAmalgamationIter<'a, P, R>
/// # use openpgp::cert::prelude::*;
/// use openpgp::policy::StandardPolicy;
///
- /// # fn main() { f().unwrap(); }
- /// # fn f() -> Result<()> {
+ /// # fn main() -> Result<()> {
/// let p = &StandardPolicy::new();
///
/// # let (cert, _) =
@@ -1457,8 +1449,7 @@ impl<'a, P, R> ValidKeyAmalgamationIter<'a, P, R>
/// # use openpgp::cert::prelude::*;
/// use openpgp::policy::StandardPolicy;
///
- /// # fn main() { f().unwrap(); }
- /// # fn f() -> Result<()> {
+ /// # fn main() -> Result<()> {
/// let p = &StandardPolicy::new();
///
/// # let (cert, _) =
@@ -1506,8 +1497,7 @@ impl<'a, P, R> ValidKeyAmalgamationIter<'a, P, R>
/// # use openpgp::cert::prelude::*;
/// use openpgp::policy::StandardPolicy;
///
- /// # fn main() { f().unwrap(); }
- /// # fn f() -> Result<()> {
+ /// # fn main() -> Result<()> {
/// let p = &StandardPolicy::new();
///
/// # let (cert, _) =