From 2824a1123fd91666a9949d17a201ac27e006b750 Mon Sep 17 00:00:00 2001 From: Michael Neumann Date: Sat, 6 Apr 2019 20:05:22 +0200 Subject: [PATCH] Changes for Cargo edition 2018 --- src/lib.rs | 6 +++--- src/mark_matrix.rs | 2 +- src/weight_matrix.rs | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 6763b8f..eee7a97 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -21,9 +21,9 @@ extern crate test; use std::{f32, f64}; use std::ops::{Add, Sub}; -use coverage::Coverage; -use mark_matrix::MarkMatrix; -pub use weight_matrix::WeightMatrix; +use crate::coverage::Coverage; +use crate::mark_matrix::MarkMatrix; +pub use crate::weight_matrix::WeightMatrix; use ndarray::Array2; diff --git a/src/mark_matrix.rs b/src/mark_matrix.rs index 6fb42c7..d7c83fe 100644 --- a/src/mark_matrix.rs +++ b/src/mark_matrix.rs @@ -1,4 +1,4 @@ -use SquareMatrix; +use crate::SquareMatrix; #[derive(Clone, Copy, PartialEq, Eq, Debug)] #[repr(u8)] diff --git a/src/weight_matrix.rs b/src/weight_matrix.rs index 52db07c..85d94e7 100644 --- a/src/weight_matrix.rs +++ b/src/weight_matrix.rs @@ -1,6 +1,6 @@ -use WeightNum; -use Weights; -use SquareMatrix; +use crate::WeightNum; +use crate::Weights; +use crate::SquareMatrix; #[derive(Debug)] pub struct WeightMatrix {