about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/correlations.rs2
-rw-r--r--src/sorter.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/correlations.rs b/src/correlations.rs
index 0b921ec..5ca427e 100644
--- a/src/correlations.rs
+++ b/src/correlations.rs
@@ -64,7 +64,7 @@ impl Correlation for Pearson {
 impl Correlation for Spearman {
     fn correlate(&self, x: &[f64], y: &[f64]) -> (f64, f64) {
         match x.len() == y.len() {
-            true => println!("safe"),
+            true => (),
             false => panic!("array should be of the same size"),
         };
 
diff --git a/src/sorter.rs b/src/sorter.rs
index 8f4a491..3c240c5 100644
--- a/src/sorter.rs
+++ b/src/sorter.rs
@@ -53,7 +53,7 @@ pub fn sort_write_to_file(
     v.sort_by(|a, b| b.1.abs().partial_cmp(&a.1.abs()).unwrap());
     let mut buffer = BufWriter::with_capacity(BUFFER_CAPACITY, File::create(&filename).unwrap());
     for (name, rho, p_val, num_overlap) in v.iter() {
-        writeln!(buffer, "{},{},{} {}", name, rho, p_val, num_overlap).unwrap();
+        writeln!(buffer, "{},{},{},{}", name, rho, p_val, num_overlap).unwrap();
     }
     buffer.flush().unwrap();