Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

Commit

Permalink
Zero, One traits have been deprecated in Rust, use Num crate instead
Browse files Browse the repository at this point in the history
Reference here: rust-lang/rfcs#369
  • Loading branch information
oceanlewis committed Aug 18, 2017
1 parent b4032fa commit 822a2c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ git = "https://github.com/tedsta/gpuarray-rs"

[dependencies]
rand = "*"
num = "*"
3 changes: 2 additions & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::num::{Zero, One};
extern crate num;
use self::num::{Zero, One};

use ga::Array;

Expand Down

0 comments on commit 822a2c7

Please sign in to comment.