From bad027b4cc1f7727b1359d5b9fd70b9189dd13a1 Mon Sep 17 00:00:00 2001 From: Laurence Tratt Date: Sat, 17 Feb 2018 17:16:54 +0000 Subject: [PATCH] Primitive integers are always Displayable and Debuggable. --- src/int.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/int.rs b/src/int.rs index 84fedc6..aad0091 100644 --- a/src/int.rs +++ b/src/int.rs @@ -1,4 +1,5 @@ use core::ops::{Not, BitAnd, BitOr, BitXor, Shl, Shr}; +use std::fmt::{Debug, Display}; use {Num, NumCast}; use bounds::Bounded; @@ -8,6 +9,8 @@ use ops::saturating::Saturating; pub trait PrimInt : Sized + Copy + + Display + + Debug + Num + NumCast + Bounded + PartialOrd + Ord + Eq