File tree Expand file tree Collapse file tree 4 files changed +0
-24
lines changed
jira-wip/src/koans/02_ticket_store Expand file tree Collapse file tree 4 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,6 @@ mod result {
78
78
#[ derive( PartialEq , Debug , Clone ) ]
79
79
pub struct ValidationError ( String ) ;
80
80
81
- impl ValidationError {
82
- fn new ( msg : & str ) -> Self {
83
- Self ( msg. to_string ( ) )
84
- }
85
- }
86
-
87
81
/// To use `ValidationError` as the `Err` variant in a `Result` we need to implement
88
82
/// the `Error` trait.
89
83
///
Original file line number Diff line number Diff line change @@ -90,12 +90,6 @@ mod vec {
90
90
#[ derive( PartialEq , Debug , Clone ) ]
91
91
pub struct ValidationError ( String ) ;
92
92
93
- impl ValidationError {
94
- fn new ( msg : & str ) -> Self {
95
- Self ( msg. to_string ( ) )
96
- }
97
- }
98
-
99
93
impl Error for ValidationError { }
100
94
101
95
impl std:: fmt:: Display for ValidationError {
Original file line number Diff line number Diff line change @@ -161,12 +161,6 @@ mod delete_and_update {
161
161
#[ derive( PartialEq , Debug , Clone ) ]
162
162
pub struct ValidationError ( String ) ;
163
163
164
- impl ValidationError {
165
- fn new ( msg : & str ) -> Self {
166
- Self ( msg. to_string ( ) )
167
- }
168
- }
169
-
170
164
impl Error for ValidationError { }
171
165
172
166
impl std:: fmt:: Display for ValidationError {
Original file line number Diff line number Diff line change @@ -145,12 +145,6 @@ pub mod store_recap {
145
145
#[ derive( PartialEq , Debug , Clone ) ]
146
146
pub struct ValidationError ( String ) ;
147
147
148
- impl ValidationError {
149
- fn new ( msg : & str ) -> Self {
150
- Self ( msg. to_string ( ) )
151
- }
152
- }
153
-
154
148
impl Error for ValidationError { }
155
149
156
150
impl std:: fmt:: Display for ValidationError {
You can’t perform that action at this time.
0 commit comments