Skip to content

Commit

Permalink
Made the tokens Cloneable
Browse files Browse the repository at this point in the history
  • Loading branch information
RincewindWizzard committed Jan 4, 2024
1 parent 2b2f667 commit 50c7367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/token.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// A raw JSON string (with escapes).
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
pub struct JsonString<'a> {
raw: &'a str,
}
Expand Down Expand Up @@ -148,7 +148,7 @@ impl Into<String> for JsonString<'_> {
}

/// A token from a stream of JSON.
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
pub enum JsonToken<'a> {
/// The start of an object, a.k.a. '{'
StartObject,
Expand Down

0 comments on commit 50c7367

Please sign in to comment.