From a4ea4ff0940902fa42d78cee30d459319486f08c Mon Sep 17 00:00:00 2001 From: Zbigniew Siciarz Date: Mon, 20 Apr 2015 11:31:52 +0200 Subject: [PATCH 1/2] Derive Clone for BoundSide --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 51eb56a..73d8275 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -152,7 +152,7 @@ impl Normalizable for Timespec { } /// The possible sides of a bound -#[derive(PartialEq, Eq, Copy)] +#[derive(PartialEq, Eq, Clone, Copy)] pub enum BoundSide { /// An upper bound Upper, From 894763f8891377f96efcbf28f9da6487b2c0d1a2 Mon Sep 17 00:00:00 2001 From: Zbigniew Siciarz Date: Mon, 20 Apr 2015 11:31:59 +0200 Subject: [PATCH 2/2] Fix deprecation warnings --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 73d8275..32e5e56 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,7 +10,6 @@ use std::cmp::Ordering; use std::fmt; use std::i32; use std::i64; -use std::marker::MarkerTrait; use std::marker::PhantomData; use time::Timespec; @@ -162,7 +161,7 @@ pub enum BoundSide { /// A trait implemented by phantom types indicating the type of the bound #[doc(hidden)] -pub trait BoundSided: MarkerTrait { +pub trait BoundSided { /// Returns the bound side this type corresponds to fn side() -> BoundSide; }