Skip to content

Commit

Permalink
run fmt all
Browse files Browse the repository at this point in the history
  • Loading branch information
uzushino committed Jan 19, 2024
1 parent 63619a3 commit 114099e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/mnist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ fn main() {
println!("{}\n{}", trn, tst);
}
}
}
}
8 changes: 2 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,7 @@ mod ffi {
len: usize,
) -> c_float;

pub fn save_index(
index: *mut Index,
output_path: *const c_void
) -> c_float;
pub fn save_index(index: *mut Index, output_path: *const c_void) -> c_float;
}
}

Expand Down Expand Up @@ -145,7 +142,7 @@ mod test {

assert!(distance == 125.0);
}

#[test]
fn test_save() {
let v = Voyager::new(5);
Expand All @@ -159,7 +156,6 @@ mod test {
v.save("test.index");
}


#[test]
fn test_runtime() {
unsafe {
Expand Down

0 comments on commit 114099e

Please sign in to comment.