Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtung committed Oct 29, 2023
1 parent 270655d commit b860dc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions c-api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,8 @@ pub unsafe extern "C" fn omikuji_predict(
.collect_vec()
};

let predictions = maybe_run_with_thread_pool(thread_pool_ptr, || {
model.predict(&feature_vec, beam_size)
});
let predictions =
maybe_run_with_thread_pool(thread_pool_ptr, || model.predict(&feature_vec, beam_size));

let output_len = output_len.min(predictions.len());
let output_labels = slice::from_raw_parts_mut(output_labels, output_len);
Expand Down
2 changes: 1 addition & 1 deletion src/bin/omikuji.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use clap::{ValueEnum, Args, Parser, Subcommand};
use clap::{Args, Parser, Subcommand, ValueEnum};
use const_default::ConstDefault;
use omikuji::model::liblinear::LossType;
use omikuji::model::TrainHyperParam;
Expand Down

0 comments on commit b860dc1

Please sign in to comment.