Skip to content

Commit db80791

Browse files
committed
update
Signed-off-by: Xintao <[email protected]>
1 parent 0421da8 commit db80791

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
//! println!("Local registry: {:?}", fail::list());
130130
//! local_registry.teardown();
131131
//! println!("Local registry: {:?}", fail::list());
132-
//! local_registry.deregister_current();
132+
//! fail::FailPointRegistry::deregister_current();
133133
//! }
134134
//! println!("Global registry: {:?}", fail::list());
135135
//! ```
@@ -594,7 +594,7 @@ impl FailPointRegistry {
594594
}
595595

596596
/// Deregister the current thread to this failpoints registry.
597-
pub fn deregister_current(&self) {
597+
pub fn deregister_current() {
598598
if cfg!(feature = "failpoints") {
599599
let id = thread::current().id();
600600
REGISTRY_GROUP.write().unwrap().remove(&id);

0 commit comments

Comments
 (0)