summaryrefslogtreecommitdiff
path: root/src/collection/ref.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/collection/ref.rs')
-rw-r--r--src/collection/ref.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collection/ref.rs b/src/collection/ref.rs
index cc234d1..748d2d2 100644
--- a/src/collection/ref.rs
+++ b/src/collection/ref.rs
@@ -89,7 +89,7 @@ impl<'a, L: OwnedLockable> RefLockCollection<'a, L> {
/// let lock = RefLockCollection::new(&data);
/// ```
#[must_use]
- pub fn new(data: &'a L) -> RefLockCollection<L> {
+ pub fn new(data: &'a L) -> Self {
RefLockCollection {
locks: get_locks(data),
data,