From bbb311979c9e9b7305c855c5b93493d285c6ac7b Mon Sep 17 00:00:00 2001 From: Rafael Bachmann Date: Thu, 27 Apr 2023 11:17:22 +0200 Subject: Rename `json` feature to `serde` Closes GH-59. Reviewed-by: Titus Wormer --- src/unist.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/unist.rs') 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, -- cgit