From 4128cc4cb44acb415be3cfdfa008fd6c95ceee74 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 30 Aug 2012 12:54:50 -0700 Subject: Make utility funs in core::int, core::uint, etc. not by-reference Closes #3302 --- src/libcore/uint-template/uint.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libcore/uint-template') diff --git a/src/libcore/uint-template/uint.rs b/src/libcore/uint-template/uint.rs index fc65d9a63e4..8954e5c4a67 100644 --- a/src/libcore/uint-template/uint.rs +++ b/src/libcore/uint-template/uint.rs @@ -61,8 +61,8 @@ pure fn div_round(x: uint, y: uint) -> uint { pure fn div_floor(x: uint, y: uint) -> uint { return x / y; } /// Produce a uint suitable for use in a hash table -pure fn hash(x: &uint) -> uint { - hash::hash_uint(*x) as uint +pure fn hash(x: uint) -> uint { + hash::hash_uint(x) as uint } /** -- cgit 1.4.1-3-g733a5