Skip to content

Commit

Permalink
Remove _ts =>
Browse files Browse the repository at this point in the history
Those should just use `GroundSpacetimeType`.
  • Loading branch information
RReverser committed Sep 6, 2024
1 parent 0fddd55 commit f068bd2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/lib/src/db/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl_deserialize!([] StAccess, de => {
))
})
});
impl_st!([] StAccess, _ts => AlgebraicType::String);
impl_st!([] StAccess, AlgebraicType::String);

/// Describe is the table is a `system table` or not.
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
Expand Down Expand Up @@ -84,4 +84,4 @@ impl_deserialize!([] StTableType, de => {
))
})
});
impl_st!([] StTableType, _ts => AlgebraicType::String);
impl_st!([] StTableType, AlgebraicType::String);
2 changes: 1 addition & 1 deletion crates/lib/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub enum ScheduleAt {
/// Value is a UNIX timestamp in microseconds.
Time(u64),
}
impl_st!([] ScheduleAt, _ts => ScheduleAt::get_type());
impl_st!([] ScheduleAt, ScheduleAt::get_type());

impl ScheduleAt {
/// Converts the `ScheduleAt` to a `std::time::Duration` from now.
Expand Down
2 changes: 1 addition & 1 deletion crates/sats/src/algebraic_type_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl AlgebraicTypeRef {

impl_serialize!([] AlgebraicTypeRef, (self, ser) => self.0.serialize(ser));
impl_deserialize!([] AlgebraicTypeRef, de => u32::deserialize(de).map(Self));
impl_st!([] AlgebraicTypeRef, _ts => AlgebraicType::U32);
impl_st!([] AlgebraicTypeRef, AlgebraicType::U32);

impl Display for AlgebraicTypeRef {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
Expand Down
4 changes: 2 additions & 2 deletions crates/sats/src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ impl_deserialize!([] ColumnAttribute, de =>
.ok_or_else(|| de::Error::custom("invalid bitflags for `ColumnAttribute`"))
);
impl_serialize!([] ColumnAttribute, (self, ser) => ser.serialize_u8(self.bits()));
impl_st!([] ColumnAttribute, _ts => AlgebraicType::U8);
impl_st!([] ColumnAttribute, AlgebraicType::U8);

impl_deserialize!([] Constraints, de => Self::try_from(de.deserialize_u8()?)
.map_err(|_| de::Error::custom("invalid bitflags for `Constraints`"))
);
impl_serialize!([] Constraints, (self, ser) => ser.serialize_u8(self.bits()));
impl_st!([] Constraints, _ts => AlgebraicType::U8);
impl_st!([] Constraints, AlgebraicType::U8);

0 comments on commit f068bd2

Please sign in to comment.