Skip to content

Commit 551ba9e

Browse files
Daisuke Nishimatsuclaude
authored andcommitted
cargo fmt: collapse hub_owner/hub_repo impl_ort_field! invocations
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 3aa9b51 commit 551ba9e

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

src/config/impl_ort.rs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -323,21 +323,13 @@ impl Config {
323323
}
324324
);
325325

326-
impl_ort_field!(
327-
hub_owner,
328-
&str,
329-
|config: &mut crate::ORTConfig, x: &str| {
330-
config.hub_owner = Some(x.to_string());
331-
}
332-
);
326+
impl_ort_field!(hub_owner, &str, |config: &mut crate::ORTConfig, x: &str| {
327+
config.hub_owner = Some(x.to_string());
328+
});
333329

334-
impl_ort_field!(
335-
hub_repo,
336-
&str,
337-
|config: &mut crate::ORTConfig, x: &str| {
338-
config.hub_repo = Some(x.to_string());
339-
}
340-
);
330+
impl_ort_field!(hub_repo, &str, |config: &mut crate::ORTConfig, x: &str| {
331+
config.hub_repo = Some(x.to_string());
332+
});
341333

342334
// ---------------- Special: batch -----------------------
343335
impl_batch_for_modules!(

0 commit comments

Comments
 (0)