Skip to content

Commit 938ab5d

Browse files
committed
Replace docs.serde.rs links with intra-rustdoc links
1 parent ef5a0de commit 938ab5d

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

serde/src/de/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ impl<'a> Display for Expected + 'a {
501501
/// by Serde.
502502
///
503503
/// Serde provides `Deserialize` implementations for many Rust primitive and
504-
/// standard library types. The complete list is [here][de]. All of these can
505-
/// be deserialized using Serde out of the box.
504+
/// standard library types. The complete list is [here][crate::de]. All of these
505+
/// can be deserialized using Serde out of the box.
506506
///
507507
/// Additionally, Serde provides a procedural macro called `serde_derive` to
508508
/// automatically generate `Deserialize` implementations for structs and enums
@@ -518,7 +518,6 @@ impl<'a> Display for Expected + 'a {
518518
/// `LinkedHashMap<K, V>` type that is deserializable by Serde because the crate
519519
/// provides an implementation of `Deserialize` for it.
520520
///
521-
/// [de]: https://docs.serde.rs/serde/de/index.html
522521
/// [derive]: https://serde.rs/derive.html
523522
/// [impl-deserialize]: https://serde.rs/impl-deserialize.html
524523
///

serde/src/ser/mod.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ declare_error_trait!(Error: Sized + Debug + Display);
194194
/// by Serde.
195195
///
196196
/// Serde provides `Serialize` implementations for many Rust primitive and
197-
/// standard library types. The complete list is [here][ser]. All of these can
198-
/// be serialized using Serde out of the box.
197+
/// standard library types. The complete list is [here][crate::ser]. All of
198+
/// these can be serialized using Serde out of the box.
199199
///
200200
/// Additionally, Serde provides a procedural macro called [`serde_derive`] to
201201
/// automatically generate `Serialize` implementations for structs and enums in
@@ -215,7 +215,6 @@ declare_error_trait!(Error: Sized + Debug + Display);
215215
/// [`linked-hash-map`]: https://crates.io/crates/linked-hash-map
216216
/// [`serde_derive`]: https://crates.io/crates/serde_derive
217217
/// [derive section of the manual]: https://serde.rs/derive.html
218-
/// [ser]: https://docs.serde.rs/serde/ser/index.html
219218
pub trait Serialize {
220219
/// Serialize this value into the given Serde serializer.
221220
///

serde_test/src/lib.rs

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//! This crate provides a convenient concise way to write unit tests for
22
//! implementations of [`Serialize`] and [`Deserialize`].
33
//!
4-
//! [`Serialize`]: https://docs.serde.rs/serde/ser/trait.Serialize.html
5-
//! [`Deserialize`]: https://docs.serde.rs/serde/de/trait.Deserialize.html
4+
//! [`Serialize`]: serde::ser::Serialize
5+
//! [`Deserialize`]: serde::de::Deserialize
66
//!
77
//! The `Serialize` impl for a value can be characterized by the sequence of
88
//! [`Serializer`] calls that are made in the course of serializing the value,
@@ -14,11 +14,7 @@
1414
//! test both directions. There are also functions to test expected failure
1515
//! conditions.
1616
//!
17-
//! [`Serializer`]: https://docs.serde.rs/serde/ser/trait.Serializer.html
18-
//! [`Token`]: https://docs.serde.rs/serde_test/enum.Token.html
19-
//! [`assert_ser_tokens`]: https://docs.serde.rs/serde_test/fn.assert_ser_tokens.html
20-
//! [`assert_de_tokens`]: https://docs.serde.rs/serde_test/fn.assert_de_tokens.html
21-
//! [`assert_tokens`]: https://docs.serde.rs/serde_test/fn.assert_tokens.html
17+
//! [`Serializer`]: serde::ser::Serializer
2218
//!
2319
//! Here is an example from the [`linked-hash-map`] crate.
2420
//!

0 commit comments

Comments
 (0)