Use capitalised Self type
This commit is contained in:
parent
fdff434325
commit
c0fb48f861
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ pub use mat4::{Mat4, mat4, dmat4};
|
|||
* floating point type and have the same number of dimensions as the
|
||||
* number of rows and columns in the matrix.
|
||||
*/
|
||||
pub trait Matrix<T,V>: Index<uint, V> Eq Neg<self> {
|
||||
pub trait Matrix<T,V>: Index<uint, V> Eq Neg<Self> {
|
||||
/**
|
||||
* # Return value
|
||||
*
|
||||
|
|
|
@ -67,7 +67,7 @@ pub trait Vector4<T>: Vector<T> {
|
|||
/**
|
||||
* A vector with numeric components
|
||||
*/
|
||||
pub trait NumericVector<T>: Vector<T> Neg<self> {
|
||||
pub trait NumericVector<T>: Vector<T> Neg<Self> {
|
||||
/**
|
||||
* The standard basis vector
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue