Skip to content

Commit

Permalink
fix style.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Jul 5, 2024
1 parent 51fbb8f commit 2076095
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion arrow-cast/src/cast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4343,7 +4343,7 @@ mod tests {
Some("30 days"),
None,
None,
]
]
);
}

Expand Down
8 changes: 4 additions & 4 deletions arrow-cast/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -668,10 +668,10 @@ impl<'a> DisplayIndex for &'a PrimitiveArray<IntervalDayTimeType> {
write!(f, "{} days", value.days)?;
first_part = false;
}

if value.milliseconds != 0 {
let millis_fmt = MillisecondsFormatter {
milliseconds:value.milliseconds,
milliseconds: value.milliseconds,
first_part,
};

Expand Down Expand Up @@ -715,7 +715,7 @@ impl<'a> DisplayIndex for &'a PrimitiveArray<IntervalMonthDayNanoType> {

struct NanosecondsFormatter {
nanoseconds: i64,
first_part: bool,
first_part: bool,
}

impl Display for NanosecondsFormatter {
Expand Down Expand Up @@ -777,7 +777,7 @@ impl Display for NanosecondsFormatter {

struct MillisecondsFormatter {
milliseconds: i32,
first_part: bool,
first_part: bool,
}

impl Display for MillisecondsFormatter {
Expand Down

0 comments on commit 2076095

Please sign in to comment.