Skip to content

Commit

Permalink
refactor(rust): add default value for async usage
Browse files Browse the repository at this point in the history
This commit introduces a default value for the `--async` option as
used with Rust bindgen.

Signed-off-by: Victor Adossi <[email protected]>
  • Loading branch information
vados-cosmonic committed Jan 16, 2025
1 parent b0f6fd8 commit 27b8baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ pub struct Opts {
/// - some=<value>[,<value>...], where each <value> is of the form:
/// - import:<name> or
/// - export:<name>
#[cfg_attr(feature = "clap", arg(long = "async", value_parser = parse_async))]
#[cfg_attr(feature = "clap", arg(long = "async", value_parser = parse_async, default_value = "AsyncConfig::default()"))]
pub async_: AsyncConfig,
}

Expand Down

0 comments on commit 27b8baf

Please sign in to comment.