From 8df46827736f95b995923e0a596b8c132892a72b Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 4 Jan 2015 17:16:48 +0200 Subject: [PATCH] Fix build failure with latest Rust nightly {From, To}Primitive are no longer in the predule. --- src/number.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/number.rs b/src/number.rs index 6b27fe2..1a29a99 100644 --- a/src/number.rs +++ b/src/number.rs @@ -16,6 +16,7 @@ use base::{TCFType, kCFAllocatorDefault}; use libc::c_void; use std::mem; +use std::num::{FromPrimitive, ToPrimitive}; pub type CFNumberType = u32;