refactor: adding fractions as a dependency
This commit is contained in:
6
Cargo.lock
generated
6
Cargo.lock
generated
@@ -8,10 +8,16 @@ version = "1.5.0"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "fractions"
|
||||||
|
version = "0.1.0"
|
||||||
|
source = "git+https://laentropia-homelab.tail7368da.ts.net/laentropia/Rusty-Fractions.git?branch=main#e79d93aa9d20a90358789f872994bc8cefa2779e"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "matrix"
|
name = "matrix"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"fractions",
|
||||||
"num-traits",
|
"num-traits",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
num-traits = "0.2.19"
|
num-traits = "0.2.19"
|
||||||
|
fractions = {git = "https://laentropia-homelab.tail7368da.ts.net/laentropia/Rusty-Fractions.git", branch= "main" }
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
use core::panic;
|
use core::panic;
|
||||||
|
use fractions::Fraction;
|
||||||
use num_traits::{Float, Num, NumAssign, Signed};
|
use num_traits::{Float, Num, NumAssign, Signed};
|
||||||
use std::fmt::{self, Debug};
|
use std::fmt::{self, Debug};
|
||||||
use std::ops::Add;
|
use std::ops::Add;
|
||||||
|
|||||||
Reference in New Issue
Block a user