Skip to content

Commit

Permalink
Merge pull request #23 from Anders429/serde_derive
Browse files Browse the repository at this point in the history
Remove separate `serde_derive` imports from doc tests.
  • Loading branch information
Anders429 authored Dec 18, 2023
2 parents 93966f1 + 1872cb8 commit f07486f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ use serde::{
/// Serializer,
/// Token,
/// };
/// use serde_derive::Serialize;
/// # use serde_derive::Serialize;
///
/// #[derive(Serialize)]
/// struct Struct {
Expand Down Expand Up @@ -459,7 +459,7 @@ impl Builder {
/// Serializer,
/// Token,
/// };
/// use serde_derive::Serialize;
/// # use serde_derive::Serialize;
///
/// #[derive(Serialize)]
/// struct Struct {
Expand Down
16 changes: 8 additions & 8 deletions src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ pub enum Token {
/// Serializer,
/// Token,
/// };
/// use serde_derive::Serialize;
/// # use serde_derive::Serialize;
///
/// #[derive(Serialize)]
/// struct UnitStruct;
Expand All @@ -405,7 +405,7 @@ pub enum Token {
/// Serializer,
/// Token,
/// };
/// use serde_derive::Serialize;
/// # use serde_derive::Serialize;
///
/// #[derive(Serialize)]
/// enum Enum {
Expand Down Expand Up @@ -439,7 +439,7 @@ pub enum Token {
/// Serializer,
/// Token,
/// };
/// use serde_derive::Serialize;
/// # use serde_derive::Serialize;
///
/// #[derive(Serialize)]
/// struct NewtypeStruct(u32);
Expand Down Expand Up @@ -468,7 +468,7 @@ pub enum Token {
/// Serializer,
/// Token,
/// };
/// use serde_derive::Serialize;
/// # use serde_derive::Serialize;
///
/// #[derive(Serialize)]
/// enum Enum {
Expand Down Expand Up @@ -580,7 +580,7 @@ pub enum Token {
/// Serializer,
/// Token,
/// };
/// use serde_derive::Serialize;
/// # use serde_derive::Serialize;
///
/// #[derive(Serialize)]
/// struct TupleStruct(u32, bool);
Expand Down Expand Up @@ -623,7 +623,7 @@ pub enum Token {
/// Serializer,
/// Token,
/// };
/// use serde_derive::Serialize;
/// # use serde_derive::Serialize;
///
/// #[derive(Serialize)]
/// enum Enum {
Expand Down Expand Up @@ -730,7 +730,7 @@ pub enum Token {
/// Serializer,
/// Token,
/// };
/// use serde_derive::Serialize;
/// # use serde_derive::Serialize;
///
/// #[derive(Serialize)]
/// struct Struct {
Expand Down Expand Up @@ -782,7 +782,7 @@ pub enum Token {
/// Serializer,
/// Token,
/// };
/// use serde_derive::Serialize;
/// # use serde_derive::Serialize;
///
/// #[derive(Serialize)]
/// enum Enum {
Expand Down

0 comments on commit f07486f

Please sign in to comment.