summaryrefslogtreecommitdiffstats
path: root/openpgp/src/serialize/stream.rs
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-08-24 12:54:16 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-08-27 12:58:07 +0200
commit83e6668ed4b5692a0a52174031f99c1e76726f77 (patch)
tree14f455534e38c79df895d8abf9dac424fe3bbce0 /openpgp/src/serialize/stream.rs
parente5746684e84377dd8828f6a5a8ab4c0eec73c3ec (diff)
ffi, openpgp: Cleanup links after cargo intraconv.
- openpgp: Make broken relative links absolute: - find -name "*.rs" -exec sed -i -E 's,^( *//[/!](.*): )((super::)+packet),\1crate::packet,' {} + - find -name "*.rs" -exec sed -i -E 's,^( *//[/!](.*): )((super::)+cert),\1crate::cert,' {} + - find -name "*.rs" -exec sed -i -E 's,^( *//[/!](.*): )((super::)+parse),\1crate::parse,' {} + - find -name "*.rs" -exec sed -i -E 's,^( *//[/!](.*): )((super::)+policy),\1crate::policy,' {} + - find -name "*.rs" -exec sed -i -E 's,^( *//[/!](.*): )((super::)+serialize),\1crate::serialize,' {} + - find -name "*.rs" -exec sed -i -E 's,^( *//[/!](.*): )((super::)+armor),\1crate::armor,' {} + - find -name "*.rs" -exec sed -i -E 's,^( *//[/!](.*): )((super::)+types),\1crate::types,' {} + - find -name "*.rs" -exec sed -i -E 's,^( *//[/!] *(\[`PacketPile`\]):).*$,\1 crate::PacketPile,' {} + - openpgp: Link to PacketParser and Policy structs, not the modules. - ffi: Make links to sequoia_openpgp and sequoia_net absolute - find -name "*.rs" -exec sed -i -E 's,^( *//[/!](.*): )((super::)+sequoia_openpgp),\1sequoia_openpgp,' {} + - find -name "*.rs" -exec sed -i -E 's,^( *//[/!](.*): )((super::)+sequoia_net),\1sequoia_net,' {} +
Diffstat (limited to 'openpgp/src/serialize/stream.rs')
-rw-r--r--openpgp/src/serialize/stream.rs44
1 files changed, 20 insertions, 24 deletions
diff --git a/openpgp/src/serialize/stream.rs b/openpgp/src/serialize/stream.rs
index 13df2008..53068489 100644
--- a/openpgp/src/serialize/stream.rs
+++ b/openpgp/src/serialize/stream.rs
@@ -348,9 +348,9 @@ impl<'a> Armorer<'a> {
/// [`Armorer::kind`]. To add headers to the armor, use
/// [`Armorer::add_header`].
///
- /// [`armor::Kind`]: super::super::armor::Kind
- /// [`Armorer::kind`]: Message::kind()
- /// [`Armorer::add_header`]: Message::add_header()
+ /// [`armor::Kind`]: crate::armor::Kind
+ /// [`Armorer::kind`]: Armorer::kind()
+ /// [`Armorer::add_header`]: Armorer::add_header()
///
/// # Examples
///
@@ -390,7 +390,7 @@ impl<'a> Armorer<'a> {
/// The armor header and footer changes depending on the type of
/// wrapped data. See [`armor::Kind`] for the possible values.
///
- /// [`armor::Kind`]: super::super::armor::Kind
+ /// [`armor::Kind`]: crate::armor::Kind
///
/// # Examples
///
@@ -666,10 +666,10 @@ impl<'a> Signer<'a> {
/// the generated signatures, use [`Signer::with_template`].
///
/// [`crypto::Signer`]: super::super::crypto::Signer
- /// [`Signer::add_signer`]: Message::add_signer()
+ /// [`Signer::add_signer`]: Signer::add_signer()
/// [Section 11.4 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-11.4
- /// [`Signer::detached`]: Message::detached()
- /// [`Signer::with_template`]: Message::with_template()
+ /// [`Signer::detached`]: Signer::detached()
+ /// [`Signer::with_template`]: Signer::with_template()
///
/// # Examples
///
@@ -755,10 +755,10 @@ impl<'a> Signer<'a> {
///
/// [`crypto::Signer`]: super::super::crypto::Signer
/// [`Signer::new`]: Message::new()
- /// [`signature::SignatureBuilder`]: super::super::packet::signature::Builder
- /// [`Signer::creation_time`]: Message::creation_time()
- /// [`Signer::hash_algo`]: Message::hash_algo()
- /// [`Signer::add_intended_recipient`]: Message::add_intended_recipient()
+ /// [`signature::SignatureBuilder`]: crate::packet::signature::SignatureBuilder
+ /// [`Signer::creation_time`]: Signer::creation_time()
+ /// [`Signer::hash_algo`]: Signer::hash_algo()
+ /// [`Signer::add_intended_recipient`]: Signer::add_intended_recipient()
///
/// # Examples
///
@@ -831,8 +831,7 @@ impl<'a> Signer<'a> {
/// This overrides any prior call to [`Signer::cleartext`].
///
/// [Section 11.4 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-11.4
- /// [`LiteralWriter`]: super::LiteralWriter
- /// [`Signer::cleartext`]: Message::cleartext()
+ /// [`Signer::cleartext`]: Signer::cleartext()
///
/// # Examples
///
@@ -931,9 +930,7 @@ impl<'a> Signer<'a> {
///
/// [Section 7 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-7
/// [Section 7.1 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-7.1
- /// [`LiteralWriter`]: super::LiteralWriter
- /// [`Armorer`]: super::Armorer
- /// [`Signer::detached`]: Message::detached()
+ /// [`Signer::detached`]: Signer::detached()
///
/// # Examples
///
@@ -1210,7 +1207,6 @@ impl<'a> Signer<'a> {
/// RFC 4880]), the literal data *must not* be wrapped using the
/// [`LiteralWriter`].
///
- /// [`LiteralWriter`]: super::LiteralWriter
/// [Section 11.3 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-11.3
/// [Section 11.4 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-11.4
///
@@ -1776,8 +1772,8 @@ impl<'a> Compressor<'a> {
/// To change the compression algorithm use [`Compressor::algo`].
/// Use [`Compressor::level`] to change the compression level.
///
- /// [`Compressor::algo`]: Message::algo()
- /// [`Compressor::level`]: Message::level()
+ /// [`Compressor::algo`]: Compressor::algo()
+ /// [`Compressor::level`]: Compressor::level()
///
/// # Examples
///
@@ -2001,10 +1997,10 @@ impl<'a> writer::Stackable<'a, Cookie> for Compressor<'a> {
/// may be a wildcard (as returned by [`KeyID::wildcard()`]) to
/// obscure the identity of the recipient.
///
-/// [`recipient`]: super::super::packet::PKESK::recipient()
-/// [`PKESK`]: super::super::packet::PKESK
+/// [`recipient`]: crate::packet::PKESK#method.recipient
+/// [`PKESK`]: crate::packet::PKESK
/// [Section 5.1 of RFC 4880]: https://tools.ietf.org/html/rfc4880#section-5.1
-/// [`KeyID::wildcard()`]: super::super::super::KeyID::wildcard()
+/// [`KeyID::wildcard()`]: crate::KeyID::wildcard()
///
/// Note that several subkeys in a certificate may be suitable
/// encryption subkeys. OpenPGP does not specify what should happen
@@ -2046,8 +2042,8 @@ impl<'a> Recipient<'a> {
/// `Recipient`s can be created from [`Key`] and
/// [`ValidKeyAmalgamation`] using [`From`].
///
- /// [`Key`]: super::super::packet::Key
- /// [`ValidKeyAmalgamation`]: super::super::cert::amalgamation::key::ValidKeyAmalgamation
+ /// [`Key`]: crate::packet::Key
+ /// [`ValidKeyAmalgamation`]: crate::cert::amalgamation::key::ValidKeyAmalgamation
/// [`From`]: std::convert::From
///
/// # Examples