Skip to content

Commit 88fd4a4

Browse files
authored
remove unused constructor (#30)
1 parent 57dab3c commit 88fd4a4

File tree

4 files changed

+0
-24
lines changed

4 files changed

+0
-24
lines changed

jira-wip/src/koans/02_ticket_store/06_result.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ mod result {
7878
#[derive(PartialEq, Debug, Clone)]
7979
pub struct ValidationError(String);
8080

81-
impl ValidationError {
82-
fn new(msg: &str) -> Self {
83-
Self(msg.to_string())
84-
}
85-
}
86-
8781
/// To use `ValidationError` as the `Err` variant in a `Result` we need to implement
8882
/// the `Error` trait.
8983
///

jira-wip/src/koans/02_ticket_store/07_vec.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ mod vec {
9090
#[derive(PartialEq, Debug, Clone)]
9191
pub struct ValidationError(String);
9292

93-
impl ValidationError {
94-
fn new(msg: &str) -> Self {
95-
Self(msg.to_string())
96-
}
97-
}
98-
9993
impl Error for ValidationError {}
10094

10195
impl std::fmt::Display for ValidationError {

jira-wip/src/koans/02_ticket_store/08_delete_and_update.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,6 @@ mod delete_and_update {
161161
#[derive(PartialEq, Debug, Clone)]
162162
pub struct ValidationError(String);
163163

164-
impl ValidationError {
165-
fn new(msg: &str) -> Self {
166-
Self(msg.to_string())
167-
}
168-
}
169-
170164
impl Error for ValidationError {}
171165

172166
impl std::fmt::Display for ValidationError {

jira-wip/src/koans/02_ticket_store/09_store_recap.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,6 @@ pub mod store_recap {
145145
#[derive(PartialEq, Debug, Clone)]
146146
pub struct ValidationError(String);
147147

148-
impl ValidationError {
149-
fn new(msg: &str) -> Self {
150-
Self(msg.to_string())
151-
}
152-
}
153-
154148
impl Error for ValidationError {}
155149

156150
impl std::fmt::Display for ValidationError {

0 commit comments

Comments
 (0)