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
@@ -42,13 +42,12 @@ use std::io;
/// ```
///
#[derive(Copy, Clone, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Default)]
#[non_exhaustive]
pub struct BytesCodec;
pub struct BytesCodec(());
impl BytesCodec {
/// Creates a new `BytesCodec` for shipping around raw bytes.
pub fn new() -> BytesCodec {
BytesCodec
BytesCodec(())
}
}