mirror of
https://github.com/bertptrs/tracing-mutex.git
synced 2025-12-25 20:50:32 +01:00
Derive Default more rather than implement it
This commit is contained in:
@@ -137,6 +137,12 @@ impl MutexId {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for MutexId {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl fmt::Debug for MutexId {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(f, "MutexID({:?})", self.0)
|
||||
|
||||
Reference in New Issue
Block a user