]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Allow missing_docs again as lightning-invoice uses it for enums
authorMatt Corallo <git@bluematt.me>
Thu, 29 Apr 2021 15:23:13 +0000 (15:23 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 29 Apr 2021 18:59:50 +0000 (18:59 +0000)
c-bindings-gen/src/main.rs

index a38e6e3750bdd8953a0d850c3a5c3ed42dfe66ad..24bcf82f4369ca3d21403ec77bfcc753b92dc925 100644 (file)
@@ -1388,7 +1388,8 @@ fn convert_file<'a, 'b>(libast: &'a FullLibraryAST, crate_types: &CrateTypes<'a>
                        writeln!(out, "#![allow(unused_parens)]").unwrap();
                        writeln!(out, "#![allow(unused_unsafe)]").unwrap();
                        writeln!(out, "#![allow(unused_braces)]").unwrap();
-                       writeln!(out, "#![deny(missing_docs)]").unwrap();
+                       // TODO: We need to map deny(missing_docs) in the source crate(s)
+                       //writeln!(out, "#![deny(missing_docs)]").unwrap();
                        writeln!(out, "pub mod c_types;").unwrap();
                        writeln!(out, "pub mod bitcoin;").unwrap();
                } else {