Skip to content

Commit cee3958

Browse files
Mingundralley
authored andcommitted
Fix doc references that rustdoc complains
One is a dangling reference from #440 The others fixed by converting interlink to HTML link, because rustdoc doesn't understand interlinks to realized trait methods
1 parent fe7c64c commit cee3958

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/de/escape.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl<'de, 'a> serde::Deserializer<'de> for EscapedDeserializer<'a> {
8585
))
8686
}
8787

88-
/// Forwards deserialization to the [`Self::deserialize_bytes`]
88+
/// Forwards deserialization to the [`deserialize_bytes`](#method.deserialize_bytes)
8989
fn deserialize_byte_buf<V>(self, visitor: V) -> Result<V::Value, Self::Error>
9090
where
9191
V: Visitor<'de>,

src/de/map.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -516,15 +516,15 @@ where
516516
forward!(deserialize_any);
517517
forward!(deserialize_ignored_any);
518518

519-
/// Tuple representation is the same as [sequences](Self::deserialize_seq).
519+
/// Tuple representation is the same as [sequences](#method.deserialize_seq).
520520
fn deserialize_tuple<V>(self, _len: usize, visitor: V) -> Result<V::Value, DeError>
521521
where
522522
V: Visitor<'de>,
523523
{
524524
self.deserialize_seq(visitor)
525525
}
526526

527-
/// Named tuple representation is the same as [unnamed tuples](Self::deserialize_tuple).
527+
/// Named tuple representation is the same as [unnamed tuples](#method.deserialize_tuple).
528528
fn deserialize_tuple_struct<V>(
529529
self,
530530
_name: &'static str,
@@ -680,15 +680,15 @@ where
680680
forward!(deserialize_any);
681681
forward!(deserialize_ignored_any);
682682

683-
/// Representation of tuples the same as [sequences](Self::deserialize_seq).
683+
/// Representation of tuples the same as [sequences](#method.deserialize_seq).
684684
fn deserialize_tuple<V>(self, _len: usize, visitor: V) -> Result<V::Value, DeError>
685685
where
686686
V: Visitor<'de>,
687687
{
688688
self.deserialize_seq(visitor)
689689
}
690690

691-
/// Representation of named tuples the same as [unnamed tuples](Self::deserialize_tuple).
691+
/// Representation of named tuples the same as [unnamed tuples](#method.deserialize_tuple).
692692
fn deserialize_tuple_struct<V>(
693693
self,
694694
_name: &'static str,

src/de/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ impl<'i, R: BufRead> XmlRead<'i> for IoReader<R> {
952952
/// XML input source that reads from a slice of bytes and can borrow from it.
953953
///
954954
/// You cannot create it, it is created automatically when you call
955-
/// [`Deserializer::from_str`] or [`Deserializer::from_slice`]
955+
/// [`Deserializer::from_str`].
956956
pub struct SliceReader<'de> {
957957
reader: Reader<&'de [u8]>,
958958
}

0 commit comments

Comments
 (0)