Skip to content

Commit

Permalink
Remove a few unused errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
01mf02 committed Jul 5, 2023
1 parent d2de4fc commit 3a337f6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions jaq-core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ pub enum Error {
StripPrefix(Val, Val),
/// `123 | rtrimstr("x")`
StripSuffix(Val, Val),
/// `now`
SystemTime(String),
/// `"" | fromdateiso8601`
FromIso8601(Val, String),
/// `null | todateiso8601`
ToIso8601(Val, String),
/// arbitrary errors for custom filters
Custom(String),
}
Expand Down Expand Up @@ -100,9 +94,6 @@ impl fmt::Display for Error {
Self::EndsWith(l, r) => write!(f, "cannot check whether {l} ends with {r}"),
Self::StripPrefix(l, r) => write!(f, "cannot strip prefix {r} from {l}"),
Self::StripSuffix(l, r) => write!(f, "cannot strip suffix {r} from {l}"),
Self::SystemTime(why) => write!(f, "Could not get system time: {why}"),
Self::FromIso8601(v, why) => write!(f, "cannot parse {v} as ISO-8601 timestamp: {why}"),
Self::ToIso8601(v, why) => write!(f, "cannot format {v} as ISO-8601 timestamp: {why}"),
Self::Custom(e) => write!(f, "custom filter error: {e}"),
}
}
Expand Down

0 comments on commit 3a337f6

Please sign in to comment.