From e8c40b6f04f3b55cd305c7ad88b07dec23a84c4e Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 29 Mar 2021 13:50:42 -0400 Subject: [PATCH] Make c_types module pub as its contents are exposed to C This makes our `[deny(missing_docs)]` annotation effective --- c-bindings-gen/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c-bindings-gen/src/main.rs b/c-bindings-gen/src/main.rs index dfbcb85..1d37bb2 100644 --- a/c-bindings-gen/src/main.rs +++ b/c-bindings-gen/src/main.rs @@ -1374,8 +1374,8 @@ fn convert_file<'a, 'b>(libast: &'a FullLibraryAST, crate_types: &mut CrateTypes writeln!(out, "#![allow(unused_unsafe)]").unwrap(); writeln!(out, "#![allow(unused_braces)]").unwrap(); writeln!(out, "#![deny(missing_docs)]").unwrap(); - writeln!(out, "mod c_types;").unwrap(); - writeln!(out, "mod bitcoin;").unwrap(); + writeln!(out, "pub mod c_types;").unwrap(); + writeln!(out, "pub mod bitcoin;").unwrap(); } else { writeln!(out, "\nuse std::ffi::c_void;\nuse bitcoin::hashes::Hash;\nuse crate::c_types::*;\n").unwrap(); } -- 2.30.2