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 {