Fix clippy warning
Delta semántico · 1
src/ref_eq.rs
- cambió de firma fn ref_eq pub
1 archivos · +1 −1
- src/ref_eq.rs +1 −1
diff --git a/src/ref_eq.rs b/src/ref_eq.rs
index b0ba18f62..40b584e42 100644
--- a/src/ref_eq.rs
+++ b/src/ref_eq.rs
@@ -1,5 +1,5 @@
/// Determine if two borrowed pointers point to the same thing.
#[inline]
-pub fn ref_eq<'a, 'b, T>(thing: &'a T, other: &'b T) -> bool {
+pub fn ref_eq<T>(thing: &T, other: &T) -> bool {
(thing as *const T) == (other as *const T)
}