Skip to content

Commit 850ce47

Browse files
chore: remove unused struct (#389)
1 parent bc3a1dd commit 850ce47

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

crates/domain/src/timespan.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::error::Error;
2-
31
use chrono::{DateTime, prelude::*};
42
use chrono_tz::Tz;
53
use serde::{Deserialize, Serialize};
@@ -45,21 +43,6 @@ impl TimeSpan {
4543
}
4644
}
4745

48-
#[derive(Debug)]
49-
pub struct InvalidTimeSpanError(i64, i64);
50-
51-
impl Error for InvalidTimeSpanError {}
52-
53-
impl std::fmt::Display for InvalidTimeSpanError {
54-
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
55-
write!(
56-
f,
57-
"Provided timespan start_ts: {} and end_ts: {} is invalid. It should be between 1 hour and 40 days.",
58-
self.0, self.1
59-
)
60-
}
61-
}
62-
6346
#[derive(Debug)]
6447
pub struct TimeSpanDateTime {
6548
pub start: DateTime<Tz>,

0 commit comments

Comments
 (0)