Skip to content

Commit

Permalink
fail: derive some more Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lucab committed Jul 4, 2019
1 parent 73ff529 commit bb1c551
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ impl FromStr for Action {
}
}

#[cfg_attr(feature = "cargo-clippy", allow(clippy::mutex_atomic))]
#[derive(Debug)]
struct FailPoint {
pause: Mutex<bool>,
pause_notifier: Condvar,
Expand Down Expand Up @@ -501,7 +503,7 @@ impl FailPoint {
}
}

#[derive(Default)]
#[derive(Debug, Default)]
struct FailPointRegistry {
// TODO: remove rwlock or store *mut FailPoint
registry: RwLock<HashMap<String, Arc<FailPoint>>>,
Expand Down

0 comments on commit bb1c551

Please sign in to comment.