From: Matt Corallo Date: Mon, 17 Jul 2023 01:58:00 +0000 (+0000) Subject: Drop `#[must_use]` that rustc complains is ignored X-Git-Tag: v0.0.116.0^2~12 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=177b19785026663c6c9c197750eb1108a0759328;p=ldk-c-bindings Drop `#[must_use]` that rustc complains is ignored --- diff --git a/c-bindings-gen/src/main.rs b/c-bindings-gen/src/main.rs index 1b54d16..a7f7a1e 100644 --- a/c-bindings-gen/src/main.rs +++ b/c-bindings-gen/src/main.rs @@ -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();