Skip to content

Commit 619c2cb

Browse files
committed
Fix doc links
docs.rs shows some warnings about links in the doc comments. https://docs.rs/crate/serde_with/3.12.0/builds/2224111
1 parent 4dd13f2 commit 619c2cb

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

serde_with/src/formats.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ create_format!(
6969
/// Use lowercase characters
7070
Lowercase
7171

72-
/// Use in combination with [`OneOrMany`](crate::OneOrMany). Emit single element for lists of size 1.
72+
/// Use in combination with [`OneOrMany`]. Emit single element for lists of size 1.
7373
PreferOne
74-
/// Use in combination with [`OneOrMany`](crate::OneOrMany). Always emit the list form.
74+
/// Use in combination with [`OneOrMany`]. Always emit the list form.
7575
PreferMany
7676

7777
/// Emit padding during serialization.

serde_with/src/guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ For example, the derives [`DeserializeFromStr`] and [`SerializeDisplay`] require
8181

8282
[`Display`]: std::fmt::Display
8383
[`FromStr`]: std::str::FromStr
84-
[`serde_with_macros`]: serde_with_macros
85-
[serde_with_chrono]: crate::chrono
84+
[`serde_with_macros`]: ::serde_with_macros
85+
[serde_with_chrono]: ::chrono_0_4
8686
[with-annotation]: https://serde.rs/field-attrs.html#with

serde_with/src/guide/serde_as_transformations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -602,10 +602,10 @@ value: u128,
602602
[`BoolFromInt<Flexible>`]: crate::BoolFromInt
603603
[`BoolFromInt<Strict>`]: crate::BoolFromInt
604604
[`Bytes`]: crate::Bytes
605-
[`chrono::DateTime<Local>`]: chrono::DateTime
606-
[`chrono::DateTime<Utc>`]: chrono::DateTime
607-
[`chrono::Duration`]: chrono::Duration
608-
[`chrono::NaiveDateTime`]: chrono::NaiveDateTime
605+
[`chrono::DateTime<Local>`]: chrono_0_4::DateTime
606+
[`chrono::DateTime<Utc>`]: chrono_0_4::DateTime
607+
[`chrono::Duration`]: chrono_0_4::Duration
608+
[`chrono::NaiveDateTime`]: chrono_0_4::NaiveDateTime
609609
[`DefaultOnError`]: crate::DefaultOnError
610610
[`DefaultOnNull`]: crate::DefaultOnNull
611611
[`DisplayFromStr`]: crate::DisplayFromStr

serde_with/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ pub mod chrono_0_4;
288288
#[cfg(feature = "chrono")]
289289
#[cfg_attr(docsrs, doc(cfg(feature = "chrono")))]
290290
pub mod chrono {
291+
pub use crate::chrono_0_4::*;
291292
pub use chrono_0_4::*;
292293
}
293294
#[cfg(feature = "alloc")]

serde_with/src/schemars_0_9.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ pub trait JsonSchemaAs<T: ?Sized> {
134134

135135
/// Generates a JSON Schema for this type.
136136
///
137-
/// If the returned schema depends on any [referenceable](JsonSchema::is_referenceable) schemas, then this method will
137+
/// If the returned schema depends on any [inlineable](JsonSchema::inline_schema) schemas, then this method will
138138
/// add them to the [`SchemaGenerator`]'s schema definitions.
139139
///
140140
/// This should not return a `$ref` schema.

0 commit comments

Comments
 (0)