diff options
author | Azul <azul@riseup.net> | 2020-12-11 18:05:58 +0100 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-12-11 18:09:09 +0100 |
commit | 9675e949909aef163dea230ad80ee7df1cba1ff8 (patch) | |
tree | 6b89dfd3dd98a1393966ddfd4ec79181bb648397 /openpgp/src/types/timestamp.rs | |
parent | e3d65e26e284b7a77af9f3b713790f8a98bc417f (diff) |
openpgp: Standardize fn main() in doctests.
- Avoid the additional `fn f()`.
Diffstat (limited to 'openpgp/src/types/timestamp.rs')
-rw-r--r-- | openpgp/src/types/timestamp.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/src/types/timestamp.rs b/openpgp/src/types/timestamp.rs index 90fa4980..ceb31ad7 100644 --- a/openpgp/src/types/timestamp.rs +++ b/openpgp/src/types/timestamp.rs @@ -173,8 +173,7 @@ impl Timestamp { /// # use sequoia_openpgp::{*, packet::prelude::*, types::*, cert::*}; /// use sequoia_openpgp::policy::StandardPolicy; /// - /// # f().unwrap(); - /// # fn f() -> Result<()> { + /// # fn main() -> Result<()> { /// let policy = &StandardPolicy::new(); /// /// // Let's fix a time. |