From 177b19785026663c6c9c197750eb1108a0759328 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 17 Jul 2023 01:58:00 +0000 Subject: [PATCH] Drop `#[must_use]` that rustc complains is ignored --- c-bindings-gen/src/main.rs | 3 --- 1 file changed, 3 deletions(-) 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(); -- 2.39.5