From 6fb044950aa25db3bc28449941f249a2aa57303f Mon Sep 17 00:00:00 2001 From: Florian Dehau Date: Sun, 6 Nov 2016 21:42:14 +0100 Subject: [PATCH] Fix layout cache on nightly --- src/util.rs | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 src/util.rs diff --git a/src/util.rs b/src/util.rs deleted file mode 100644 index cbf0e810..00000000 --- a/src/util.rs +++ /dev/null @@ -1,12 +0,0 @@ -use std::collections::hash_map::RandomState; -use std::hash::{Hash, Hasher, BuildHasher}; - -use layout::Rect; - -pub fn hash(t: &T, area: &Rect) -> u64 { - let state = RandomState::new(); - let mut hasher = state.build_hasher(); - t.hash(&mut hasher); - area.hash(&mut hasher); - hasher.finish() -}