Skip to content

Commit 061848c

Browse files
committed
Remove manual incref
1 parent 105b53f commit 061848c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/handle.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,7 @@ impl Handle {
104104

105105
impl Clone for Handle {
106106
fn clone(&self) -> Self {
107-
h5lock!({
108-
self.incref();
109-
Self::try_new(self.id()).unwrap_or_else(|_| Self::invalid())
110-
})
107+
Self::try_borrow(self.id()).unwrap_or_else(|_| Self::invalid())
111108
}
112109
}
113110

0 commit comments

Comments
 (0)