aboutsummaryrefslogtreecommitdiffstats
path: root/src/unist.rs
diff options
context:
space:
mode:
authorLibravatar Rafael Bachmann <rafael.bachmann.93@gmail.com>2023-04-27 11:17:22 +0200
committerLibravatar GitHub <noreply@github.com>2023-04-27 11:17:22 +0200
commitbbb311979c9e9b7305c855c5b93493d285c6ac7b (patch)
treecfc2fc8399dae7f4495b6f395d95d87c25afb632 /src/unist.rs
parent6d8b9a6e18685bbd24751a27469907069413eb75 (diff)
downloadmarkdown-rs-bbb311979c9e9b7305c855c5b93493d285c6ac7b.tar.gz
markdown-rs-bbb311979c9e9b7305c855c5b93493d285c6ac7b.tar.bz2
markdown-rs-bbb311979c9e9b7305c855c5b93493d285c6ac7b.zip
Rename `json` feature to `serde`
Closes GH-59. Reviewed-by: Titus Wormer <tituswormer@gmail.com>
Diffstat (limited to 'src/unist.rs')
-rw-r--r--src/unist.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unist.rs b/src/unist.rs
index 56f1abf..4c22457 100644
--- a/src/unist.rs
+++ b/src/unist.rs
@@ -6,7 +6,7 @@ use alloc::fmt;
/// One place in a source file.
#[derive(Clone, Eq, PartialEq)]
-#[cfg_attr(feature = "json", derive(serde::Serialize, serde::Deserialize))]
+#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Point {
/// 1-indexed integer representing a line in a source file.
pub line: usize,
@@ -35,7 +35,7 @@ impl fmt::Debug for Point {
/// Location of a node in a source file.
#[derive(Clone, Eq, PartialEq)]
-#[cfg_attr(feature = "json", derive(serde::Serialize, serde::Deserialize))]
+#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct Position {
/// Represents the place of the first character of the parsed source region.
pub start: Point,