]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Drop `#[must_use]` that rustc complains is ignored
authorMatt Corallo <git@bluematt.me>
Mon, 17 Jul 2023 01:58:00 +0000 (01:58 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 28 Jul 2023 23:06:00 +0000 (23:06 +0000)
c-bindings-gen/src/main.rs

index 1b54d16de5a8c830220e408e13ae7d1d477a37fa..a7f7a1e3896b16941064d3d273c0a54b2aa25540 100644 (file)
@@ -366,9 +366,6 @@ fn writeln_trait<'a, 'b, W: std::io::Write>(w: &mut W, t: &'a syn::ItemTrait, ty
                                                writeln!(extra_headers, "struct LDK{};", trait_name).unwrap();
                                                continue;
                                        }
-                                       // Sadly, this currently doesn't do what we want, but it should be easy to get
-                                       // cbindgen to support it. See https://github.com/eqrion/cbindgen/issues/531
-                                       writeln!(w, "\t#[must_use]").unwrap();
                                }
 
                                let mut cpp_docs = Vec::new();