Skip to content

Commit 3c1164c

Browse files
authored
Don't require --autodrop-borrows for C generator (#858)
Closes #857
1 parent 7f62d89 commit 3c1164c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/c/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub struct Opts {
9292
pub type_section_suffix: Option<String>,
9393

9494
/// Configure the autodropping of borrows in exported functions.
95-
#[cfg_attr(feature = "clap", arg(long))]
95+
#[cfg_attr(feature = "clap", arg(long, default_value_t = Enabled::default()))]
9696
pub autodrop_borrows: Enabled,
9797
}
9898

0 commit comments

Comments
 (0)