Skip to content

Commit

Permalink
Fix Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
RReverser committed Sep 15, 2024
1 parent de274a2 commit c74bf87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/time_repr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ use time::macros::format_description;
use time::parsing::Parsable;
use time::{format_description, OffsetDateTime};

pub(crate) trait FormatWrapper {
pub(crate) trait FormatWrapper: std::fmt::Debug {
type Format: 'static + ?Sized + Parsable + Formattable;

const FORMAT: &'static Self::Format;
}

#[derive(Debug)]
pub(crate) struct Iso8601;

impl FormatWrapper for Iso8601 {
Expand All @@ -21,6 +22,7 @@ impl FormatWrapper for Iso8601 {
const FORMAT: &'static Self::Format = &Self::Format::DEFAULT;
}

#[derive(Debug)]
pub(crate) struct Fits;

impl FormatWrapper for Fits {
Expand Down

0 comments on commit c74bf87

Please sign in to comment.