Skip to content

Commit

Permalink
Align TimeRange with Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets committed Sep 20, 2024
1 parent 4653981 commit c957ed2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions v1/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ fn clauses_from_parameters(p: &str) -> ZResult<String> {
}
};
match time_range {
Ok(TimeRange(start, stop)) => {
Ok(TimeRange { start, end }) => {
match start {
TimeBound::Inclusive(t) => {
result.push_str(" AND time >= ");
Expand All @@ -929,7 +929,7 @@ fn clauses_from_parameters(p: &str) -> ZResult<String> {
}
TimeBound::Unbounded => {}
}
match stop {
match end {
TimeBound::Inclusive(t) => {
result.push_str(" AND time <= ");
write_timeexpr(&mut result, t);
Expand Down
4 changes: 2 additions & 2 deletions v2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ fn timerange_from_parameters(p: &str) -> ZResult<Option<String>> {

let mut result = String::new();
match time_range {
Ok(TimeRange(start, stop)) => {
Ok(TimeRange { start, end }) => {
match start {
TimeBound::Inclusive(t) => {
result.push_str("start:");
Expand All @@ -1012,7 +1012,7 @@ fn timerange_from_parameters(p: &str) -> ZResult<Option<String>> {
result.push_str("start:0");
}
}
match stop {
match end {
TimeBound::Inclusive(t) => {
result.push_str(", stop:");
write_timeexpr(&mut result, t, 1);
Expand Down

0 comments on commit c957ed2

Please sign in to comment.