From df7c467005756433b2627b766bd086efda8689f4 Mon Sep 17 00:00:00 2001 From: Mica White Date: Tue, 16 Jul 2024 17:02:42 -0400 Subject: Fix trait bounds for LockCollection::from --- src/collection/ref.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/collection/ref.rs') 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 { + pub fn new(data: &'a L) -> Self { RefLockCollection { locks: get_locks(data), data, -- cgit v1.2.3