tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 701HTML 654Markdown 12TOML 62332 Definiciones

Fix clippy warning

a86404a275b2e86bc98286783c3e527447a3e665 · por Emil Sjölander · (hace 7 años) · padre 3cd5b660e · ver el árbol en este commit

Delta semántico · 1

src/ref_eq.rs

  • cambió de firma fn ref_eq pub

1 archivos · +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)
 }