diff options
Diffstat (limited to 'src/unist.rs')
-rw-r--r-- | src/unist.rs | 4 |
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, |