Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
xacrimon committed Dec 26, 2020
1 parent bbac61e commit 019d1d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ impl<T: ?Sized> RwLock<T> {
}
}

/// # Safety
/// Write locks may not be used in combination with this method.
pub unsafe fn get(&self) -> &T {
&*self.data.get()
}
Expand Down

0 comments on commit 019d1d0

Please sign in to comment.