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

Zero, One traits have been deprecated in Rust, use Num crate instead #6

Merged
merged 1 commit into from
Aug 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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