fn make_format_string(settings: &Settings) -> &str {
    match settings.format {
        Format::Iso8601(ref fmt) => match *fmt {
            Iso8601Format::Date => "%F",
            Iso8601Format::Hours => "%FT%H%:z",
            Iso8601Format::Minutes => "%FT%H:%M%:z",
            Iso8601Format::Seconds => "%FT%T%:z",
            Iso8601Format::Ns => "%FT%T,%f%:z",
        },
        Format::Rfc5322 => "%a, %d %h %Y %T %z",
        Format::Rfc3339(ref fmt) => match *fmt {
            Rfc3339Format::Date => "%F",
            Rfc3339Format::Seconds => "%F %T%:z",
            Rfc3339Format::Ns => "%F %T.%f%:z",
        },
        Format::Custom(ref fmt) => fmt,
        Format::Default => "%c",
    }
}
/// Return the appropriate format string for the given settings.
Return the appropriate format string for the given settings.
Return the appropriate format string for the given settings .
fn make_format_string(settings: &Settings) -> &str {
    match settings.format {
        Format::Iso8601(ref fmt) => match *fmt {
            Iso8601Format::Date => "%F",
            Iso8601Format::Hours => "%FT%H%:z",
            Iso8601Format::Minutes => "%FT%H:%M%:z",
            Iso8601Format::Seconds => "%FT%T%:z",
            Iso8601Format::Ns => "%FT%T,%f%:z",
        },
        Format::Rfc5322 => "%a, %d %h %Y %T %z",
        Format::Rfc3339(ref fmt) => match *fmt {
            Rfc3339Format::Date => "%F",
            Rfc3339Format::Seconds => "%F %T%:z",
            Rfc3339Format::Ns => "%F %T.%f%:z",
        },
        Format::Custom(ref fmt) => fmt,
        Format::Default => "%c",
    }
}
fn make_format_string ( settings : & Settings ) -> & str { match settings . format { Format :: Iso8601 ( ref fmt ) => match * fmt { Iso8601Format :: Date => " " , Iso8601Format :: Hours => " " , Iso8601Format :: Minutes => " " , Iso8601Format :: Seconds => " " , Iso8601Format :: Ns => " " , } , Format :: Rfc5322 => " " , Format :: Rfc3339 ( ref fmt ) => match * fmt { Rfc3339Format :: Date => " " , Rfc3339Format :: Seconds => " " , Rfc3339Format :: Ns => " " , } , Format :: Custom ( ref fmt ) => fmt , Format :: Default => " " , } }
Return the appropriate format string for the given settings.
Return the appropriate format string for the given settings .
settings
&Settings
settings
&Settings