From 896735a2b00db1716aa81a92d982f0addfe2fe21 Mon Sep 17 00:00:00 2001 From: HeroesGrave Date: Sat, 30 Aug 2014 12:00:34 +1200 Subject: [PATCH] updated to latest Rust --- Cargo.toml | 2 +- src/array.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index cb36279..76249ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,6 @@ authors = ["Brendan Zabarauskas ", "Tomasz Stachowiak" ] -[[lib]] +[lib] name = "cgmath" diff --git a/src/array.rs b/src/array.rs index 87ff916..7d7436e 100644 --- a/src/array.rs +++ b/src/array.rs @@ -46,7 +46,7 @@ pub trait Array1: Index + IndexMut } /// A column-major array -pub trait Array2, Row: Array1, Element: Copy>: +pub trait Array2+'static, Row: Array1, Element: Copy>: Index + IndexMut { /// Get the pointer to the first element of the array. fn ptr<'a>(&'a self) -> &'a Element {