Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
samansmink committed Sep 16, 2024
1 parent 1a0089c commit cf9555c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions crates/duckdb-loadable-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ struct CEntryPointMacroArgs {
}

/// Wraps an entrypoint function to expose an unsafe extern "C" function of the same name.
/// Warning: experimental!
#[proc_macro_attribute]
pub fn duckdb_entrypoint_c_api(attr: TokenStream, item: TokenStream) -> TokenStream {
let attr_args = match NestedMeta::parse_meta_list(attr.into()) {
Expand Down
9 changes: 6 additions & 3 deletions crates/libduckdb-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ mod build_bundled {
"src/bindgen_bundled_version.rs",
#[cfg(feature = "loadable_extension")]
"src/bindgen_bundled_version_loadable.rs",
out_path
).expect("Could not copy bindings to output directory");
out_path,
)
.expect("Could not copy bindings to output directory");
}

let manifest_file = std::fs::File::open(format!("{out_dir}/{lib_name}/manifest.json")).expect("manifest file");
Expand Down Expand Up @@ -235,7 +236,9 @@ mod build_linked {
"src/bindgen_bundled_version.rs",
#[cfg(feature = "loadable_extension")]
"src/bindgen_bundled_version_loadable.rs",
out_path).expect("Could not copy bindings to output directory");
out_path,
)
.expect("Could not copy bindings to output directory");
}

#[cfg(feature = "buildtime_bindgen")]
Expand Down

0 comments on commit cf9555c

Please sign in to comment.