projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dabf0dc
)
Drop `#[must_use]` that rustc complains is ignored
author
Matt Corallo
<git@bluematt.me>
Mon, 17 Jul 2023 01:58:00 +0000
(
01:58
+0000)
committer
Matt Corallo
<git@bluematt.me>
Fri, 28 Jul 2023 23:06:00 +0000
(23:06 +0000)
c-bindings-gen/src/main.rs
patch
|
blob
|
history
diff --git
a/c-bindings-gen/src/main.rs
b/c-bindings-gen/src/main.rs
index 1b54d16de5a8c830220e408e13ae7d1d477a37fa..a7f7a1e3896b16941064d3d273c0a54b2aa25540 100644
(file)
--- 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;
}
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();
}
let mut cpp_docs = Vec::new();