mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
refactor(masking): use empty enums as masking:Strategy<T> types (#2874)
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user