We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0421da8 commit db80791Copy full SHA for db80791
src/lib.rs
@@ -129,7 +129,7 @@
129
//! println!("Local registry: {:?}", fail::list());
130
//! local_registry.teardown();
131
132
-//! local_registry.deregister_current();
+//! fail::FailPointRegistry::deregister_current();
133
//! }
134
//! println!("Global registry: {:?}", fail::list());
135
//! ```
@@ -594,7 +594,7 @@ impl FailPointRegistry {
594
}
595
596
/// Deregister the current thread to this failpoints registry.
597
- pub fn deregister_current(&self) {
+ pub fn deregister_current() {
598
if cfg!(feature = "failpoints") {
599
let id = thread::current().id();
600
REGISTRY_GROUP.write().unwrap().remove(&id);
0 commit comments