From e4c260b8d2c62ffd5b70e31aa50287a3a5cfc91d Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Mon, 1 Jun 2020 08:44:10 +0200 Subject: [PATCH] Fix typo in signature of trait method 'Shared::from_unique_ptr()' (#393) --- src/support.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support.rs b/src/support.rs index 8b98a556..470624bc 100644 --- a/src/support.rs +++ b/src/support.rs @@ -177,7 +177,7 @@ where Self: Sized, { fn clone(shared_ptr: &SharedPtrBase) -> SharedPtrBase; - fn from_unique_ptr(shared_ptr: UniquePtr) -> SharedPtrBase; + fn from_unique_ptr(unique_ptr: UniquePtr) -> SharedPtrBase; fn get(shared_ptr: &SharedPtrBase) -> *mut Self; fn reset(shared_ptr: &mut SharedPtrBase); fn use_count(shared_ptr: &SharedPtrBase) -> long;