diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-08-24 12:54:16 +0200 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-08-27 12:58:07 +0200 |
commit | 83e6668ed4b5692a0a52174031f99c1e76726f77 (patch) | |
tree | 14f455534e38c79df895d8abf9dac424fe3bbce0 /openpgp/src/serialize.rs | |
parent | e5746684e84377dd8828f6a5a8ab4c0eec73c3ec (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.rs')
-rw-r--r-- | openpgp/src/serialize.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/openpgp/src/serialize.rs b/openpgp/src/serialize.rs index fef1bf72..64c13b86 100644 --- a/openpgp/src/serialize.rs +++ b/openpgp/src/serialize.rs @@ -74,7 +74,7 @@ //! [`Packet`]: super::Packet //! [`Cert`]: super::Cert //! [`Message`]: super::Message -//! [`Signature`]: super::packet::Signature +//! [`Signature`]: crate::packet::Signature //! //! This example demonstrates how to serialize a literal data packet //! (see [Section 5.9 of RFC 4880]): @@ -246,7 +246,7 @@ pub trait Serialize : Marshal { /// non-exportable signatures is not exported. /// /// [`serialize(..)`]: Serialize::serialize - /// [`Signature`]: super::packet::Signature + /// [`Signature`]: crate::packet::Signature /// [`Cert`]: super::Cert fn export(&self, o: &mut dyn std::io::Write) -> Result<()> { Marshal::export(self, o) @@ -286,7 +286,7 @@ pub trait Marshal: seal::Sealed { /// non-exportable signatures is not exported. /// /// [`serialize(..)`]: Marshal::serialize - /// [`Signature`]: super::packet::Signature + /// [`Signature`]: crate::packet::Signature /// [`Cert`]: super::Cert fn export(&self, o: &mut dyn std::io::Write) -> Result<()> { self.serialize(o) @@ -344,7 +344,7 @@ pub trait SerializeInto : MarshalInto { /// non-exportable signatures is not exported. /// /// [`serialize_into(..)`]: SerializeInto::serialize_into - /// [`Signature`]: super::packet::Signature + /// [`Signature`]: crate::packet::Signature /// [`Cert`]: super::Cert /// /// Returns the length of the serialized representation. @@ -369,7 +369,7 @@ pub trait SerializeInto : MarshalInto { /// non-exportable signatures is not exported. /// /// [`to_vec()`]: SerializeInto::to_vec() - /// [`Signature`]: super::packet::Signature + /// [`Signature`]: crate::packet::Signature /// [`Cert`]: super::Cert fn export_to_vec(&self) -> Result<Vec<u8>> { MarshalInto::export_to_vec(self) @@ -436,7 +436,7 @@ pub trait MarshalInto : seal::Sealed { /// non-exportable signatures is not exported. /// /// [`serialize_into(..)`]: MarshalInto::serialize_into - /// [`Signature`]: super::packet::Signature + /// [`Signature`]: crate::packet::Signature /// [`Cert`]: super::Cert /// /// Returns the length of the serialized representation. @@ -461,7 +461,7 @@ pub trait MarshalInto : seal::Sealed { /// non-exportable signatures is not exported. /// /// [`to_vec()`]: MarshalInto::to_vec() - /// [`Signature`]: super::packet::Signature + /// [`Signature`]: crate::packet::Signature /// [`Cert`]: super::Cert fn export_to_vec(&self) -> Result<Vec<u8>> { let mut o = vec![0; self.serialized_len()]; @@ -644,7 +644,7 @@ impl Marshal for BodyLength { /// [`BodyLength::Indeterminate`]. If you want to serialize an /// old-style length, use [`serialize_old(..)`]. /// - /// [`Error::InvalidArgument`]: super::super::Error::InvalidArgument + /// [`Error::InvalidArgument`]: Error::InvalidArgument /// [`serialize_old(..)`]: BodyLength::serialize_old() fn serialize(&self, o: &mut dyn std::io::Write) -> Result<()> { match self { @@ -721,7 +721,7 @@ impl BodyLength { /// [`BodyLength::Partial`]. If you want to serialize a /// new-style length, use [`serialize(..)`]. /// - /// [`Error::InvalidArgument`]: super::super::Error::InvalidArgument + /// [`Error::InvalidArgument`]: Error::InvalidArgument /// [`serialize(..)`]: #impl-Serialize pub fn serialize_old<W: io::Write>(&self, o: &mut W) -> Result<()> { // Assume an optimal encoding is desired. @@ -1637,7 +1637,7 @@ impl Marshal for Signature4 { /// Returns [`Error::InvalidArgument`] if either the hashed-area /// or the unhashed-area exceeds the size limit of 2^16. /// - /// [`Error::InvalidArgument`]: super::super::Error::InvalidArgument + /// [`Error::InvalidArgument`]: Error::InvalidArgument fn serialize(&self, o: &mut dyn std::io::Write) -> Result<()> { assert_eq!(self.version(), 4); write_byte(o, self.version())?; @@ -2683,7 +2683,7 @@ impl MarshalInto for Packet { /// frames. /// /// [`openpgp::Packet`]: super::Packet -/// [`packet::Signature`]: super::packet::Signature +/// [`packet::Signature`]: crate::packet::Signature #[allow(dead_code)] enum PacketRef<'a> { /// Unknown packet. |