diff options
Diffstat (limited to 'openpgp/src/cert/amalgamation')
-rw-r--r-- | openpgp/src/cert/amalgamation/iter.rs | 3 | ||||
-rw-r--r-- | openpgp/src/cert/amalgamation/key.rs | 11 | ||||
-rw-r--r-- | openpgp/src/cert/amalgamation/key/iter.rs | 30 |
3 files changed, 15 insertions, 29 deletions
diff --git a/openpgp/src/cert/amalgamation/iter.rs b/openpgp/src/cert/amalgamation/iter.rs index bf940845..9e40abde 100644 --- a/openpgp/src/cert/amalgamation/iter.rs +++ b/openpgp/src/cert/amalgamation/iter.rs @@ -341,8 +341,7 @@ impl<'a, C> ValidComponentAmalgamationIter<'a, C> { /// use openpgp::types::RevocationStatus; /// use sequoia_openpgp::policy::StandardPolicy; /// - /// # fn main() { f().unwrap(); } - /// # fn f() -> Result<()> { + /// # fn main() -> Result<()> { /// let p = &StandardPolicy::new(); /// /// # let (cert, _) = diff --git a/openpgp/src/cert/amalgamation/key.rs b/openpgp/src/cert/amalgamation/key.rs index d06d1840..f8fbaa01 100644 --- a/openpgp/src/cert/amalgamation/key.rs +++ b/openpgp/src/cert/amalgamation/key.rs @@ -45,7 +45,7 @@ //! vice versa even though we support changing a `KeyBundle`'s role: //! //! ``` -//! # f().unwrap(); fn f() -> sequoia_openpgp::Result<()> { +//! # fn main() -> sequoia_openpgp::Result<()> { //! # use std::convert::TryInto; //! # use sequoia_openpgp as openpgp; //! # use openpgp::cert::prelude::*; @@ -89,8 +89,7 @@ //! use openpgp::types::RevocationStatus; //! use sequoia_openpgp::policy::StandardPolicy; //! -//! # fn main() { f().unwrap(); } -//! # fn f() -> Result<()> { +//! # fn main() -> Result<()> { //! # let (cert, _) = //! # CertBuilder::general_purpose(None, Some("alice@example.org")) //! # .generate()?; @@ -148,8 +147,7 @@ //! use openpgp::types::RevocationStatus; //! use sequoia_openpgp::policy::StandardPolicy; //! -//! # fn main() { f().unwrap(); } -//! # fn f() -> Result<()> { +//! # fn main() -> Result<()> { //! let p = &StandardPolicy::new(); //! //! # let (cert, _) = @@ -224,8 +222,7 @@ //! # use openpgp::cert::prelude::*; //! use sequoia_openpgp::policy::StandardPolicy; //! -//! # fn main() { f().unwrap(); } -//! # fn f() -> Result<()> { +//! # fn main() -> Result<()> { //! let p = &StandardPolicy::new(); //! //! # let (cert, _) = 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, _) = |