Skip to content

Commit

Permalink
Fix intra doc links.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders429 committed Dec 22, 2023
1 parent bf55468 commit fc9d010
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
//!
//! [`claims`]: https://docs.rs/claims/
//! [`Deserialize`]: serde::Deserialize
//! [`HashSet`]: hashbrown::HashSet
//! [`HashSet`]: https://docs.rs/hashbrown/latest/hashbrown/struct.HashSet.html
//! [`Serialize`]: serde::Serialize
//! [`Serialize::serialize()`]: serde::Serialize::serialize()
Expand Down
5 changes: 5 additions & 0 deletions src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,15 @@ use serde::{
#[derive(Clone, Copy, Debug)]
pub enum SerializeStructAs {
/// Serialize structs using [`Token::Struct`].
///
/// [`Token::Struct`]: crate::Token::Struct
Struct,
/// Serialize structs using [`Token::Seq`].
///
/// This type of serialization is often done by compact serialization formats. Using this
/// setting simulates those serializers.
///
/// [`Token::Seq`]: crate::Token::Seq
Seq,
}

Expand Down Expand Up @@ -133,6 +137,7 @@ pub enum SerializeStructAs {
/// [`is_human_readable()`]: Builder::is_human_readable()
/// [`serialize_struct_as()`]: Builder::serialize_struct_as()
/// [`Serialize`]: serde::Serialize
/// [`Token`]: crate::Token
#[derive(Debug)]
pub struct Serializer {
is_human_readable: bool,
Expand Down
2 changes: 1 addition & 1 deletion src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ pub enum Token {
/// );
/// ```
///
/// [`HashSet`]: hashbrown::HashSet
/// [`HashSet`]: https://docs.rs/hashbrown/latest/hashbrown/struct.HashSet.html
/// [`Serializer`]: crate::Serializer
Unordered(&'static [&'static [Token]]),
}
Expand Down

0 comments on commit fc9d010

Please sign in to comment.