diff --git a/serde_with/src/lib.rs b/serde_with/src/lib.rs index 068b5e06..529969e3 100644 --- a/serde_with/src/lib.rs +++ b/serde_with/src/lib.rs @@ -558,7 +558,7 @@ pub struct DisplayFromStr; /// De/Serialize a [`Option`] type while transforming the empty string to [`None`] /// -/// Convert an [`Option`] from/to string using [`FromStr`] and [`Display`] implementations. +/// Convert an [`Option`] from/to string using [`FromStr`] and [`Display`](::core::fmt::Display) implementations. /// An empty string is deserialized as [`None`] and a [`None`] vice versa. /// /// # Examples @@ -1768,7 +1768,7 @@ pub struct PickFirst(PhantomData); /// For deserialization the opposite `T: Into` is required. /// The `Clone` bound is required since `serialize` operates on a reference but `Into` implementations on references are uncommon. /// -/// **Note**: [`TryFromInto`] is the more generalized version of this adapter which uses the [`TryInto`](std::convert::TryInto) trait instead. +/// **Note**: [`TryFromInto`] is the more generalized version of this adapter which uses the [`TryInto`] trait instead. /// /// # Example /// @@ -1849,7 +1849,7 @@ pub struct FromInto(PhantomData); /// For serialization `O` needs to be `for<'a> &'a O: Into`. /// For deserialization the opposite `T: Into` is required. /// -/// **Note**: [`TryFromIntoRef`] is the more generalized version of this adapter which uses the [`TryInto`](std::convert::TryInto) trait instead. +/// **Note**: [`TryFromIntoRef`] is the more generalized version of this adapter which uses the [`TryInto`] trait instead. /// /// # Example /// diff --git a/serde_with/src/schemars_0_8.rs b/serde_with/src/schemars_0_8.rs index a175edc6..abb52527 100644 --- a/serde_with/src/schemars_0_8.rs +++ b/serde_with/src/schemars_0_8.rs @@ -121,7 +121,7 @@ pub trait JsonSchemaAs { /// Generates a JSON Schema for this type. /// /// If the returned schema depends on any [referenceable](JsonSchema::is_referenceable) schemas, then this method will - /// add them to the [`SchemaGenerator`](gen::SchemaGenerator)'s schema definitions. + /// add them to the [`SchemaGenerator`]'s schema definitions. /// /// This should not return a `$ref` schema. fn json_schema(gen: &mut SchemaGenerator) -> Schema; diff --git a/serde_with_macros/src/lib.rs b/serde_with_macros/src/lib.rs index 061cb02e..c670299d 100644 --- a/serde_with_macros/src/lib.rs +++ b/serde_with_macros/src/lib.rs @@ -282,8 +282,8 @@ where /// The `serialize_always` cannot be used together with a manual `skip_serializing_if` annotations, /// as these conflict in their meaning. A compile error will be generated if this occurs. /// -/// The `skip_serializing_none` only works if the type is called [`Option`], -/// [`std::option::Option`], or [`core::option::Option`]. Type aliasing an [`Option`] and giving it +/// The `skip_serializing_none` only works if the type is called `Option`, +/// `std::option::Option`, or `core::option::Option`. Type aliasing an [`Option`] and giving it /// another name, will cause this field to be ignored. This cannot be supported, as proc-macros run /// before type checking, thus it is not possible to determine if a type alias refers to an /// [`Option`].