summaryrefslogtreecommitdiffstats
path: root/openpgp/src/types
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-08-23 16:55:26 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-08-27 12:58:07 +0200
commite5746684e84377dd8828f6a5a8ab4c0eec73c3ec (patch)
tree5261ba9f497ec5ce51d47198742919673de3c893 /openpgp/src/types
parent078c4d7ee16ea06977ec8cb7cf5571c880e9c710 (diff)
Convert markdown to intra-doc links.
- Apply cargo intraconv.
Diffstat (limited to 'openpgp/src/types')
-rw-r--r--openpgp/src/types/compression_level.rs3
-rw-r--r--openpgp/src/types/features.rs2
-rw-r--r--openpgp/src/types/key_flags.rs2
-rw-r--r--openpgp/src/types/mod.rs14
-rw-r--r--openpgp/src/types/revocation_key.rs4
-rw-r--r--openpgp/src/types/server_preferences.rs6
-rw-r--r--openpgp/src/types/timestamp.rs8
7 files changed, 17 insertions, 22 deletions
diff --git a/openpgp/src/types/compression_level.rs b/openpgp/src/types/compression_level.rs
index e3e102ff..a78aeb28 100644
--- a/openpgp/src/types/compression_level.rs
+++ b/openpgp/src/types/compression_level.rs
@@ -17,13 +17,12 @@ use crate::{
/// these issues messages should [use padding].
///
/// [dangerous when used naively]: https://mailarchive.ietf.org/arch/msg/openpgp/2FQUVt6Dw8XAsaMELyo5BNlh2pM
-/// [use padding]: ../serialize/stream/padding/index.html
+/// [use padding]: super::serialize::stream::padding
///
/// # Examples
///
/// Write a message using the given [CompressionAlgorithm]:
///
-/// [CompressionAlgorithm]: enum.CompressionAlgorithm.html
///
/// ```
/// use sequoia_openpgp as openpgp;
diff --git a/openpgp/src/types/features.rs b/openpgp/src/types/features.rs
index e5efb26f..907f002e 100644
--- a/openpgp/src/types/features.rs
+++ b/openpgp/src/types/features.rs
@@ -24,7 +24,7 @@ use crate::types::Bitfield;
/// between semantic equality and serialized equality is that semantic
/// equality ignores differences in the amount of padding.
///
-/// [`Features::normalized_eq`]: #method.normalized_eq
+/// [`Features::normalized_eq`]: Features::normalized_eq()
///
/// # Examples
///
diff --git a/openpgp/src/types/key_flags.rs b/openpgp/src/types/key_flags.rs
index e4ea0bbc..819d4974 100644
--- a/openpgp/src/types/key_flags.rs
+++ b/openpgp/src/types/key_flags.rs
@@ -22,7 +22,7 @@ use crate::types::Bitfield;
/// semantic equality and serialized equality is that semantic
/// equality ignores differences in the amount of padding.
///
-/// [`KeyFlags::normalized_eq`]: #method.normalized_eq
+/// [`KeyFlags::normalized_eq`]: KeyFlags::normalized_eq()
///
/// # Examples
///
diff --git a/openpgp/src/types/mod.rs b/openpgp/src/types/mod.rs
index e9d39801..31d3e286 100644
--- a/openpgp/src/types/mod.rs
+++ b/openpgp/src/types/mod.rs
@@ -40,10 +40,7 @@
//! that adding or subtracting durations will never overflow or underflow without
//! notice.
//!
-//! [`Timestamp::round_down`]: struct.Timestamp.html#method.round_down
-//! [`KeyFlags`]: struct.KeyFlags.html
-//! [`Timestamp`]: struct.Timestamp.html
-//! [`Duration`]: struct.Duration.html
+//! [`Timestamp::round_down`]: Timestamp::round_down()
use std::fmt;
use std::str::FromStr;
@@ -534,7 +531,7 @@ impl Arbitrary for Curve {
/// Use [`SymmetricAlgorithm::from`] to translate a numeric value to a
/// symbolic one.
///
-/// [`SymmetricAlgorithm::from`]: https://doc.rust-lang.org/std/convert/trait.From.html
+/// [`SymmetricAlgorithm::from`]: std::convert::From
///
/// Note: This enum cannot be exhaustively matched to allow future
/// extensions.
@@ -689,12 +686,12 @@ impl Arbitrary for SymmetricAlgorithm {
/// Use [`AEADAlgorithm::from`] to translate a numeric value to a
/// symbolic one.
///
-/// [`AEADAlgorithm::from`]: https://doc.rust-lang.org/std/convert/trait.From.html
+/// [`AEADAlgorithm::from`]: std::convert::From
///
/// Note: This enum cannot be exhaustively matched to allow future
/// extensions.
///
-/// This feature is [experimental](../index.html#experimental-features).
+/// This feature is [experimental](super#experimental-features).
///
/// # Examples
///
@@ -1551,7 +1548,6 @@ impl ReasonForRevocation {
///
/// Construct a new [`Message`] containing one text literal packet:
///
-/// [`Message`]: struct.Message.html
///
/// ```rust
/// use sequoia_openpgp as openpgp;
@@ -1676,7 +1672,7 @@ impl Arbitrary for DataFormat {
/// Generates a new certificate then checks if the User ID is revoked or not under
/// the given policy using [`ValidUserIDAmalgamation`]:
///
-/// [`ValidUserIDAmalgamation`]: ../cert/amalgamation/type.ValidUserIDAmalgamation.html
+/// [`ValidUserIDAmalgamation`]: super::cert::amalgamation::ValidUserIDAmalgamation
///
/// ```rust
/// use sequoia_openpgp as openpgp;
diff --git a/openpgp/src/types/revocation_key.rs b/openpgp/src/types/revocation_key.rs
index 0643c264..a7ab4f19 100644
--- a/openpgp/src/types/revocation_key.rs
+++ b/openpgp/src/types/revocation_key.rs
@@ -20,8 +20,8 @@ use crate::{
/// Revocation keys can be retrieved using [`ComponentAmalgamation::revocation_keys`]
/// and set using [`CertBuilder::set_revocation_keys`].
///
-/// [`ComponentAmalgamation::revocation_keys`]: ../cert/amalgamation/struct.ComponentAmalgamation.html#method.revocation_keys
-/// [`CertBuilder::set_revocation_keys`]: ../cert/struct.CertBuilder.html#method.set_revocation_keys
+/// [`ComponentAmalgamation::revocation_keys`]: super::cert::amalgamation::ComponentAmalgamation::revocation_keys()
+/// [`CertBuilder::set_revocation_keys`]: super::cert::CertBuilder::set_revocation_keys()
///
/// # Examples
///
diff --git a/openpgp/src/types/server_preferences.rs b/openpgp/src/types/server_preferences.rs
index 94c49776..7adfb83a 100644
--- a/openpgp/src/types/server_preferences.rs
+++ b/openpgp/src/types/server_preferences.rs
@@ -25,7 +25,7 @@ use crate::types::Bitfield;
/// semantic equality and serialized equality is that semantic
/// equality ignores differences in the amount of padding.
///
-/// [`KeyServerPreferences::normalized_eq`]: #method.normalized_eq
+/// [`KeyServerPreferences::normalized_eq`]: KeyServerPreferences::normalized_eq()
///
/// # Examples
///
@@ -229,7 +229,7 @@ impl KeyServerPreferences {
///
/// See [`KeyServerPreferences::no_modify`].
///
- /// [`KeyServerPreferences::no_modify`]: #method.no_modify
+ /// [`KeyServerPreferences::no_modify`]: KeyServerPreferences::no_modify()
///
/// # Examples
///
@@ -250,7 +250,7 @@ impl KeyServerPreferences {
///
/// See [`KeyServerPreferences::no_modify`].
///
- /// [`KeyServerPreferences::no_modify`]: #method.no_modify
+ /// [`KeyServerPreferences::no_modify`]: KeyServerPreferences::no_modify()
///
/// # Examples
///
diff --git a/openpgp/src/types/timestamp.rs b/openpgp/src/types/timestamp.rs
index fb18f082..06a3b6e8 100644
--- a/openpgp/src/types/timestamp.rs
+++ b/openpgp/src/types/timestamp.rs
@@ -28,7 +28,7 @@ use crate::{
/// Note that this example retrieves raw packet value.
/// Use [`SubpacketArea::signature_creation_time`] to get the signature creation time.
///
-/// [`SubpacketArea::signature_creation_time`]: ../packet/signature/subpacket/struct.SubpacketArea.html#method.signature_creation_time
+/// [`SubpacketArea::signature_creation_time`]: super::packet::signature::subpacket::SubpacketArea::signature_creation_time()
///
/// ```
/// use sequoia_openpgp as openpgp;
@@ -60,7 +60,7 @@ use crate::{
///
/// [Section 3.5 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-3.5
/// [UNIX epoch]: https://en.wikipedia.org/wiki/Unix_time
-/// [`Timestamp::round_down`]: ../types/struct.Timestamp.html#method.round_down
+/// [`Timestamp::round_down`]: super::types::Timestamp::round_down()
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Timestamp(u32);
assert_send_and_sync!(Timestamp);
@@ -161,7 +161,7 @@ impl Timestamp {
/// The lower limit `floor` represents the earliest time the timestamp will be
/// rounded down to.
///
- /// See also [`Duration::round_up`](struct.Duration.html#method.round_up).
+ /// See also [`Duration::round_up`](Duration::round_up()).
///
/// # Important note
///
@@ -428,7 +428,7 @@ impl Duration {
/// while avoiding the metadata leak associated with preserving
/// the originally intended expiration time.
///
- /// [`Timestamp::round_down`]: struct.Timestamp.html#method.round_down
+ /// [`Timestamp::round_down`]: Timestamp::round_down()
///
/// The given level `p` determines the resulting resolution of
/// `2^p` seconds. The default is `21`, which results in a