Skip to content

Commit ba4327d

Browse files
committed
Clickbench
1 parent 851ef9a commit ba4327d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

vortex-dtype/src/datetime/unit.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,17 @@ use vortex_error::VortexResult;
99
Debug, Clone, Copy, PartialEq, Eq, Hash, Ord, PartialOrd, IntoPrimitive, TryFromPrimitive,
1010
)]
1111
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
12+
#[repr(u8)]
1213
pub enum TimeUnit {
1314
/// Nanoseconds
14-
#[serde(rename = "ns")]
1515
Ns,
1616
/// Microseconds
17-
#[serde(rename = "us")]
1817
Us,
1918
/// Milliseconds
20-
#[serde(rename = "ms")]
2119
Ms,
2220
/// Seconds
23-
#[serde(rename = "s")]
2421
S,
2522
/// Days
26-
#[serde(rename = "d")]
2723
D,
2824
}
2925

@@ -44,7 +40,7 @@ impl Display for TimeUnit {
4440
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
4541
match self {
4642
Self::Ns => write!(f, "ns"),
47-
Self::Us => write!(f, "μs"),
43+
Self::Us => write!(f, "µs"),
4844
Self::Ms => write!(f, "ms"),
4945
Self::S => write!(f, "s"),
5046
Self::D => write!(f, "days"),

0 commit comments

Comments
 (0)