summaryrefslogtreecommitdiff
path: root/src/collection
diff options
context:
space:
mode:
Diffstat (limited to 'src/collection')
-rw-r--r--src/collection/boxed.rs2
-rw-r--r--src/collection/owned.rs2
-rw-r--r--src/collection/ref.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/collection/boxed.rs b/src/collection/boxed.rs
index 375564c..a12a690 100644
--- a/src/collection/boxed.rs
+++ b/src/collection/boxed.rs
@@ -102,7 +102,7 @@ impl<L: OwnedLockable + Default> Default for BoxedLockCollection<L> {
}
}
-impl<L: OwnedLockable + Default> From<L> for BoxedLockCollection<L> {
+impl<L: OwnedLockable> From<L> for BoxedLockCollection<L> {
fn from(value: L) -> Self {
Self::new(value)
}
diff --git a/src/collection/owned.rs b/src/collection/owned.rs
index 919c403..d180ed2 100644
--- a/src/collection/owned.rs
+++ b/src/collection/owned.rs
@@ -72,7 +72,7 @@ impl<L: OwnedLockable + Default> Default for OwnedLockCollection<L> {
}
}
-impl<L: OwnedLockable + Default> From<L> for OwnedLockCollection<L> {
+impl<L: OwnedLockable> From<L> for OwnedLockCollection<L> {
fn from(value: L) -> Self {
Self::new(value)
}
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,