ソースを参照

:bug: made Complex visible to user

Felix Bytow 2 年 前
コミット
6f776aed6f
5 ファイル変更9 行追加2 行削除
  1. 4 0
      CHANGELOG.md
  2. 1 1
      Cargo.toml
  3. 1 0
      src/lib.rs
  4. 1 1
      src/types/complex.rs
  5. 2 0
      src/types/mod.rs

+ 4 - 0
CHANGELOG.md

@@ -1,5 +1,9 @@
 # Changelog
 
+## Release 0.2.1
+
+ - Forgot to actually make `Complex` visible to the user.
+
 ## Release 0.2.0
 
  - The `Numeric` trait combining all the traits we need from our numeric values.

+ 1 - 1
Cargo.toml

@@ -1,7 +1,7 @@
 [package]
 name = "lineal"
 authors = ["Felix Bytow <drako@drako.guru>"]
-version = "0.2.0"
+version = "0.2.1"
 edition = "2021"
 publish = ["crates-drako-guru"]
 

+ 1 - 0
src/lib.rs

@@ -1,5 +1,6 @@
 //! The crate is a LINEar ALgebra library.
 pub use self::traits::{Float, Numeric, Primitive};
+pub use self::types::Complex;
 
 mod traits;
 mod types;

+ 1 - 1
src/types/complex.rs

@@ -115,7 +115,7 @@ impl<T: Float + Numeric + Primitive> Numeric for Complex<T> {
 
 #[cfg(test)]
 mod tests {
-    use crate::types::complex::Complex;
+    use crate::Complex;
 
     #[test]
     fn division() {

+ 2 - 0
src/types/mod.rs

@@ -1 +1,3 @@
+pub use complex::Complex;
+
 mod complex;