chore: Revert "use #[non_exhaustive] instead of private unit field" (#3323)

This reverts commit 575938d457.
This commit is contained in:
Taiki Endo
2020-12-23 08:27:58 -08:00
committed by GitHub
parent 575938d457
commit ce0e9c67cf
15 changed files with 55 additions and 43 deletions
+2 -3
View File
@@ -224,13 +224,12 @@ mod date {
use time::{self, Duration};
#[non_exhaustive]
pub struct Now;
pub struct Now(());
/// Returns a struct, which when formatted, renders an appropriate `Date`
/// header value.
pub fn now() -> Now {
Now
Now(())
}
// Gee Alex, doesn't this seem like premature optimization. Well you see