summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet_pile.rs
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-08-20 18:06:26 +0200
committerNora Widdecke <nora@sequoia-pgp.org>2021-08-27 12:58:06 +0200
commitb3eeed5cad0031accc3ae848b44c44014d1fd78a (patch)
tree5049b0dbcf293c09d64de836496bdf215fa7ac0d /openpgp/src/packet_pile.rs
parent214324aab97df7b6d8fb3193e204122bb61aee32 (diff)
openpgp: Fix links in documentation.
Diffstat (limited to 'openpgp/src/packet_pile.rs')
-rw-r--r--openpgp/src/packet_pile.rs11
1 files changed, 4 insertions, 7 deletions
diff --git a/openpgp/src/packet_pile.rs b/openpgp/src/packet_pile.rs
index 17d53143..9113f121 100644
--- a/openpgp/src/packet_pile.rs
+++ b/openpgp/src/packet_pile.rs
@@ -25,16 +25,13 @@ use crate::parse::Cookie;
/// [`PacketPile::from_file`] (or related routines).
///
/// [packet]: https://tools.ietf.org/html/rfc4880#section-4
-/// [`PacketParser`]: parse/struct.PacketParser.html
-/// [`PacketPileParser`]: parse/struct.PacketPileParser.html
-/// [`PacketPile::from_file`]: struct.PacketPile.html#method.from_file
+/// [`PacketParser`]: crate::parse::PacketParser
+/// [`PacketPileParser`]: crate::parse::PacketPileParser
///
/// You can also convert a [`Cert`] into a `PacketPile` using
/// `PacketPile::from`. Unlike serializing a `Cert`, this does not
/// drop any secret key material.
///
-/// [`Cert`]: ../struct.Cert.html
-///
/// Normally, you'll want to convert the `PacketPile` to a `Cert` or a
/// `Message`.
///
@@ -134,8 +131,8 @@ impl<'a> Parse<'a, PacketPile> for PacketPile {
///
/// Note: this interface *does* buffer the contents of packets.
///
- /// [`PacketParser`]: parse/struct.PacketParser.html
- /// [`PacketPileParser`]: parse/struct.PacketPileParser.html
+ /// [`PacketParser`]: crate::parse::PacketParser
+ /// [`PacketPileParser`]: crate::parse::PacketPileParser
fn from_reader<R: 'a + io::Read + Send + Sync>(reader: R) -> Result<PacketPile> {
let bio = buffered_reader::Generic::with_cookie(
reader, None, Cookie::default());