Skip to content

Commit 5905093

Browse files
refactor(rust): add default value for async usage (#1127)
This commit introduces a default value for the `--async` option as used with Rust bindgen. Signed-off-by: Victor Adossi <[email protected]>
1 parent b0f6fd8 commit 5905093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ pub struct Opts {
294294
/// - some=<value>[,<value>...], where each <value> is of the form:
295295
/// - import:<name> or
296296
/// - export:<name>
297-
#[cfg_attr(feature = "clap", arg(long = "async", value_parser = parse_async))]
297+
#[cfg_attr(feature = "clap", arg(long = "async", value_parser = parse_async, default_value = "none"))]
298298
pub async_: AsyncConfig,
299299
}
300300

0 commit comments

Comments
 (0)