Derive Default more rather than implement it

This commit is contained in:
2021-05-08 14:28:51 +02:00
parent 050ee27af6
commit eb7abc70ea
2 changed files with 10 additions and 13 deletions

View File

@@ -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)