refactor(masking): use empty enums as masking:Strategy<T> types (#2874)

This commit is contained in:
nain-F49FF806
2023-11-28 08:53:53 +01:00
committed by GitHub
parent 54d6b1083f
commit 0e66b1b5dc
4 changed files with 12 additions and 12 deletions

View File

@ -7,7 +7,7 @@ pub trait Strategy<T> {
}
/// Debug with type
pub struct WithType;
pub enum WithType {}
impl<T> Strategy<T> for WithType {
fn fmt(_: &T, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
@ -18,7 +18,7 @@ impl<T> Strategy<T> for WithType {
}
/// Debug without type
pub struct WithoutType;
pub enum WithoutType {}
impl<T> Strategy<T> for WithoutType {
fn fmt(_: &T, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {