tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5364Rust 86Markdown 12TOML 91841 Definiciones

Fix clippy warning

76e5fdc2493312f8e513fc44a101499e65f0e378 · por Emil Sjölander · (hace 7 años) · padre a88c829ad · 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)
 }