diff --git a/c-api/src/lib.rs b/c-api/src/lib.rs index 6db8985..dfff6d5 100644 --- a/c-api/src/lib.rs +++ b/c-api/src/lib.rs @@ -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); diff --git a/src/bin/omikuji.rs b/src/bin/omikuji.rs index f72a1bb..9925dd4 100644 --- a/src/bin/omikuji.rs +++ b/src/bin/omikuji.rs @@ -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;