Skip to content

Commit 19855ec

Browse files
committed
Returned Rq
1 parent e38c4f3 commit 19855ec

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

fluent-syntax/src/ast/helper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize};
77
// This is a helper struct used to properly deserialize referential
88
// JSON comments which are single continuous String, into a vec of
99
// content slices.
10-
#[derive(Debug, Clone, PartialEq)]
10+
#[derive(Debug, Clone, PartialEq, Eq)]
1111
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
1212
#[cfg_attr(feature = "serde", serde(untagged))]
1313
pub enum CommentDef<S> {

fluent-syntax/src/ast/mod.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ use std::ops::{Deref, Range};
113113
/// }
114114
/// );
115115
/// ```
116-
#[derive(Debug, Clone, PartialEq)]
116+
#[derive(Debug, Clone, PartialEq, Eq)]
117117
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
118118
pub struct Resource<S> {
119119
pub body: Vec<Entry<S>>,
@@ -197,7 +197,7 @@ pub struct Resource<S> {
197197
/// }
198198
/// );
199199
/// ```
200-
#[derive(Debug, Clone, PartialEq)]
200+
#[derive(Debug, Clone, PartialEq, Eq)]
201201
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
202202
#[cfg_attr(feature = "serde", serde(tag = "type"))]
203203
pub enum Entry<S> {
@@ -261,7 +261,7 @@ pub enum Entry<S> {
261261
/// }
262262
/// );
263263
/// ```
264-
#[derive(Debug, Clone, PartialEq)]
264+
#[derive(Debug, Clone, PartialEq, Eq)]
265265
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
266266
pub struct Message<S> {
267267
pub id: Identifier<S>,
@@ -317,7 +317,7 @@ pub struct Message<S> {
317317
/// }
318318
/// );
319319
/// ```
320-
#[derive(Debug, Clone, PartialEq)]
320+
#[derive(Debug, Clone, PartialEq, Eq)]
321321
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
322322
pub struct Term<S> {
323323
pub id: Identifier<S>,
@@ -399,7 +399,7 @@ pub struct Term<S> {
399399
/// }
400400
/// );
401401
/// ```
402-
#[derive(Debug, Clone, PartialEq)]
402+
#[derive(Debug, Clone, PartialEq, Eq)]
403403
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
404404
pub struct Pattern<S> {
405405
pub elements: Vec<PatternElement<S>>,
@@ -478,7 +478,7 @@ pub struct Pattern<S> {
478478
/// }
479479
/// );
480480
/// ```
481-
#[derive(Debug, Clone, PartialEq)]
481+
#[derive(Debug, Clone, PartialEq, Eq)]
482482
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
483483
#[cfg_attr(feature = "serde", serde(tag = "type"))]
484484
pub enum PatternElement<S> {
@@ -557,7 +557,7 @@ pub enum PatternElement<S> {
557557
/// }
558558
/// );
559559
/// ```
560-
#[derive(Debug, Clone, PartialEq)]
560+
#[derive(Debug, Clone, PartialEq, Eq)]
561561
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
562562
pub struct Attribute<S> {
563563
pub id: Identifier<S>,
@@ -608,7 +608,7 @@ pub struct Attribute<S> {
608608
/// }
609609
/// );
610610
/// ```
611-
#[derive(Debug, Clone, PartialEq)]
611+
#[derive(Debug, Clone, PartialEq, Eq)]
612612
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
613613
pub struct Identifier<S> {
614614
pub name: S,
@@ -693,7 +693,7 @@ pub struct Identifier<S> {
693693
/// }
694694
/// );
695695
/// ```
696-
#[derive(Debug, Clone, PartialEq)]
696+
#[derive(Debug, Clone, PartialEq, Eq)]
697697
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
698698
#[cfg_attr(feature = "serde", serde(tag = "type"))]
699699
pub struct Variant<S> {
@@ -780,7 +780,7 @@ pub struct Variant<S> {
780780
/// }
781781
/// );
782782
/// ```
783-
#[derive(Debug, PartialEq, Clone)]
783+
#[derive(Debug, PartialEq, Eq, Clone)]
784784
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
785785
#[cfg_attr(feature = "serde", serde(tag = "type"))]
786786
pub enum VariantKey<S> {
@@ -834,7 +834,7 @@ pub enum VariantKey<S> {
834834
/// }
835835
/// );
836836
/// ```
837-
#[derive(Debug, Clone, PartialEq)]
837+
#[derive(Debug, Clone, PartialEq, Eq)]
838838
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
839839
#[cfg_attr(feature = "serde", serde(from = "helper::CommentDef<S>"))]
840840
pub struct Comment<S> {
@@ -917,7 +917,7 @@ pub struct Comment<S> {
917917
/// }
918918
/// );
919919
/// ```
920-
#[derive(Debug, Clone, Default, PartialEq)]
920+
#[derive(Debug, Clone, Default, PartialEq, Eq)]
921921
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
922922
#[cfg_attr(feature = "serde", serde(tag = "type"))]
923923
pub struct CallArguments<S> {
@@ -988,7 +988,7 @@ pub struct CallArguments<S> {
988988
/// }
989989
/// );
990990
/// ```
991-
#[derive(Debug, Clone, PartialEq)]
991+
#[derive(Debug, Clone, PartialEq, Eq)]
992992
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
993993
#[cfg_attr(feature = "serde", serde(tag = "type"))]
994994
pub struct NamedArgument<S> {
@@ -1047,7 +1047,7 @@ pub struct NamedArgument<S> {
10471047
/// );
10481048
/// ```
10491049
1050-
#[derive(Debug, Clone, PartialEq)]
1050+
#[derive(Debug, Clone, PartialEq, Eq)]
10511051
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
10521052
#[cfg_attr(feature = "serde", serde(tag = "type"))]
10531053
pub enum InlineExpression<S> {
@@ -1514,7 +1514,7 @@ impl<S> InlineExpression<S> {
15141514
/// }
15151515
/// );
15161516
/// ```
1517-
#[derive(Debug, Clone, PartialEq)]
1517+
#[derive(Debug, Clone, PartialEq, Eq)]
15181518
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
15191519
#[cfg_attr(feature = "serde", serde(untagged))]
15201520
pub enum Expression<S> {
@@ -1559,7 +1559,7 @@ pub enum Expression<S> {
15591559
/// assert_eq!(id.span, Span { start: 0, end: 11 }); // the span of hello-world identifier
15601560
/// ```
15611561
#[cfg(feature = "spans")]
1562-
#[derive(Debug, Clone, Default, PartialEq)]
1562+
#[derive(Debug, Clone, Default, PartialEq, Eq)]
15631563
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
15641564
pub struct Span(pub Range<usize>);
15651565

0 commit comments

Comments
 (0)