Skip to content

Commit 177b197

Browse files
committed
Drop #[must_use] that rustc complains is ignored
1 parent dabf0dc commit 177b197

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

c-bindings-gen/src/main.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,6 @@ fn writeln_trait<'a, 'b, W: std::io::Write>(w: &mut W, t: &'a syn::ItemTrait, ty
366366
writeln!(extra_headers, "struct LDK{};", trait_name).unwrap();
367367
continue;
368368
}
369-
// Sadly, this currently doesn't do what we want, but it should be easy to get
370-
// cbindgen to support it. See https://github.com/eqrion/cbindgen/issues/531
371-
writeln!(w, "\t#[must_use]").unwrap();
372369
}
373370

374371
let mut cpp_docs = Vec::new();

0 commit comments

Comments
 (0)