Skip to content

Commit

Permalink
Clarify how TypeNameToDebug actually works
Browse files Browse the repository at this point in the history
Co-authored-by: Janito Vaqueiro Ferreira Filho <[email protected]>
  • Loading branch information
teor2345 and jvff authored Jul 9, 2021
1 parent f458187 commit 6d15b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra-chain/src/fmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use proptest::prelude::*;
#[cfg(any(test, feature = "proptest-impl"))]
use proptest_derive::Arbitrary;

/// Wrapper to override `Debug`, redirecting it to the type's name.
/// Wrapper to override `Debug`, redirecting it to only output the type's name.
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(any(test, feature = "proptest-impl"), derive(Arbitrary))]
pub struct TypeNameToDebug<T>(pub T);
Expand Down

0 comments on commit 6d15b88

Please sign in to comment.