Fix clippy lint in convert module
This commit is contained in:
1 parent
23df5f425f
commit
a9c431627b
1 file changed
+1
-1
+1
-1
@@ -51,7 +51,7 @@ pub fn clone<T: Clone>(x: &T) -> T {
|
|||||||
#[inline]
|
#[inline]
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn clone_mut<T: Clone>(x: &mut T) -> T {
|
pub fn clone_mut<T: Clone>(x: &mut T) -> T {
|
||||||
(&*x).clone()
|
(*x).clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|||||||
Reference in new issue
Block a user