Skip to content

Commit

Permalink
Merge pull request AtheMathmo#57 from zackmdavis/clean_up_compiler_wa…
Browse files Browse the repository at this point in the history
…rnings

Clean up compiler warnings
  • Loading branch information
AtheMathmo committed Apr 28, 2016
2 parents 6cc4f37 + 37acb42 commit fd929d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion rusty-machine/src/linalg/matrix/impl_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,8 @@ mod tests {
assert_eq!(a.into_vec(), res_data.clone());
}

#[test]
#[test]
#[allow(unused_assignments, unused_variables)]
fn slice_add_assign() {
let mut a = Matrix::new(3, 3, (0..9).collect::<Vec<i32>>());
let mut a_slice = MatrixSliceMut::from_matrix(&mut a, [0,0], 3, 3);
Expand Down Expand Up @@ -1309,6 +1310,7 @@ mod tests {
}

#[test]
#[allow(unused_assignments, unused_variables)]
fn slice_sub_assign() {
let mut a = Matrix::new(3, 3, (0..9).collect::<Vec<i32>>());
let mut a_slice = MatrixSliceMut::from_matrix(&mut a, [0,0], 3, 3);
Expand Down Expand Up @@ -1360,6 +1362,7 @@ mod tests {
}

#[test]
#[allow(unused_assignments, unused_variables)]
fn slice_div_assign() {
let a_data = vec![1f32, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0];
let res_data = vec![0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5];
Expand All @@ -1377,6 +1380,7 @@ mod tests {
}

#[test]
#[allow(unused_assignments, unused_variables)]
fn slice_mul_assign() {
let a_data = vec![1f32, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0];
let res_data = vec![2f32, 4.0, 6.0, 8.0, 10.0, 12.0, 14.0, 16.0, 18.0];
Expand Down
2 changes: 1 addition & 1 deletion rusty-machine/tests/learning/gp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ fn test_default_gp() {

let test_inputs = Matrix::new(5,1,vec![2.3,4.4,5.1,6.2,7.1]);

let outputs = gp.predict(&test_inputs);
let _outputs = gp.predict(&test_inputs);
}

0 comments on commit fd929d7

Please sign in to comment.