diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-06-24 12:15:40 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-06-24 12:15:40 +0200 |
commit | be5a503164991edd5fb7162f121efe6cf6149f5d (patch) | |
tree | 46547f67944f008ae9852e9b4cd55a9b0bd32d36 /openpgp/src/parse/packet_parser_builder.rs | |
parent | 1971add16d17995b84dddf6460d1827af563f88b (diff) |
openpgp: Simplify tests.
Diffstat (limited to 'openpgp/src/parse/packet_parser_builder.rs')
-rw-r--r-- | openpgp/src/parse/packet_parser_builder.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/openpgp/src/parse/packet_parser_builder.rs b/openpgp/src/parse/packet_parser_builder.rs index 9378aaba..e2df1ad5 100644 --- a/openpgp/src/parse/packet_parser_builder.rs +++ b/openpgp/src/parse/packet_parser_builder.rs @@ -47,7 +47,7 @@ impl Default for Dearmor { /// # Examples /// /// ```rust -/// # f().unwrap(); fn f() -> sequoia_openpgp::Result<()> { +/// # fn main() -> sequoia_openpgp::Result<()> { /// use sequoia_openpgp as openpgp; /// use openpgp::parse::{Parse, PacketParserResult, PacketParserBuilder}; /// @@ -126,7 +126,7 @@ impl<'a> PacketParserBuilder<'a> { /// # Examples /// /// ```rust - /// # f().unwrap(); fn f() -> sequoia_openpgp::Result<()> { + /// # fn main() -> sequoia_openpgp::Result<()> { /// use sequoia_openpgp as openpgp; /// use openpgp::Packet; /// use openpgp::parse::{Parse, PacketParserResult, PacketParserBuilder}; @@ -168,7 +168,7 @@ impl<'a> PacketParserBuilder<'a> { /// # Examples /// /// ```rust - /// # f().unwrap(); fn f() -> sequoia_openpgp::Result<()> { + /// # fn main() -> sequoia_openpgp::Result<()> { /// use sequoia_openpgp as openpgp; /// use openpgp::{Error, Packet}; /// use openpgp::packet::Tag; @@ -220,7 +220,7 @@ impl<'a> PacketParserBuilder<'a> { /// # Examples /// /// ```rust - /// # f().unwrap(); fn f() -> sequoia_openpgp::Result<()> { + /// # fn main() -> sequoia_openpgp::Result<()> { /// use sequoia_openpgp as openpgp; /// use openpgp::Packet; /// use openpgp::parse::{Parse, PacketParserResult, PacketParserBuilder}; @@ -254,7 +254,7 @@ impl<'a> PacketParserBuilder<'a> { /// # Examples /// /// ```rust - /// # f().unwrap(); fn f() -> sequoia_openpgp::Result<()> { + /// # fn main() -> sequoia_openpgp::Result<()> { /// use sequoia_openpgp as openpgp; /// use openpgp::Packet; /// use openpgp::parse::{Parse, PacketParserResult, PacketParserBuilder}; @@ -288,7 +288,7 @@ impl<'a> PacketParserBuilder<'a> { /// # Examples /// /// ``` - /// # f().unwrap(); fn f() -> sequoia_openpgp::Result<()> { + /// # fn main() -> sequoia_openpgp::Result<()> { /// use sequoia_openpgp as openpgp; /// use openpgp::parse::{Parse, PacketParserBuilder}; /// @@ -321,7 +321,7 @@ impl<'a> PacketParserBuilder<'a> { /// # Examples /// /// ``` - /// # f().unwrap(); fn f() -> sequoia_openpgp::Result<()> { + /// # fn main() -> sequoia_openpgp::Result<()> { /// use sequoia_openpgp as openpgp; /// use openpgp::parse::{Parse, PacketParserBuilder, Dearmor}; /// @@ -342,7 +342,7 @@ impl<'a> PacketParserBuilder<'a> { /// # Examples /// /// ```rust - /// # f().unwrap(); fn f() -> sequoia_openpgp::Result<()> { + /// # fn main() -> sequoia_openpgp::Result<()> { /// use sequoia_openpgp as openpgp; /// use openpgp::parse::{Parse, PacketParserResult, PacketParserBuilder}; /// |