@@ -37,7 +37,7 @@ pub fn get_suggestions_from_json<S: ::std::hash::BuildHasher>(
37
37
Ok ( result)
38
38
}
39
39
40
- #[ derive( Debug , Copy , Clone , Hash , PartialEq ) ]
40
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
41
41
pub struct LinePosition {
42
42
pub line : usize ,
43
43
pub column : usize ,
@@ -49,7 +49,7 @@ impl std::fmt::Display for LinePosition {
49
49
}
50
50
}
51
51
52
- #[ derive( Debug , Copy , Clone , Hash , PartialEq ) ]
52
+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
53
53
pub struct LineRange {
54
54
pub start : LinePosition ,
55
55
pub end : LinePosition ,
@@ -61,21 +61,21 @@ impl std::fmt::Display for LineRange {
61
61
}
62
62
}
63
63
64
- #[ derive( Debug , Clone , Hash , PartialEq ) ]
64
+ #[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
65
65
/// An error/warning and possible solutions for fixing it
66
66
pub struct Suggestion {
67
67
pub message : String ,
68
68
pub snippets : Vec < Snippet > ,
69
69
pub solutions : Vec < Solution > ,
70
70
}
71
71
72
- #[ derive( Debug , Clone , Hash , PartialEq ) ]
72
+ #[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
73
73
pub struct Solution {
74
74
pub message : String ,
75
75
pub replacements : Vec < Replacement > ,
76
76
}
77
77
78
- #[ derive( Debug , Clone , Hash , PartialEq ) ]
78
+ #[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
79
79
pub struct Snippet {
80
80
pub file_name : String ,
81
81
pub line_range : LineRange ,
@@ -86,7 +86,7 @@ pub struct Snippet {
86
86
pub text : ( String , String , String ) ,
87
87
}
88
88
89
- #[ derive( Debug , Clone , Hash , PartialEq ) ]
89
+ #[ derive( Debug , Clone , Hash , PartialEq , Eq ) ]
90
90
pub struct Replacement {
91
91
pub snippet : Snippet ,
92
92
pub replacement : String ,
0 commit comments