projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6f5f27e
)
[bindings] Silence c-bindings-gen compile warnings
author
Matt Corallo
<git@bluematt.me>
Thu, 11 Feb 2021 21:18:47 +0000
(16:18 -0500)
committer
Matt Corallo
<git@bluematt.me>
Thu, 18 Feb 2021 17:28:25 +0000
(12:28 -0500)
c-bindings-gen/src/types.rs
patch
|
blob
|
history
diff --git
a/c-bindings-gen/src/types.rs
b/c-bindings-gen/src/types.rs
index 8c15b1258dad3ee6b80b105f626d571f0b84e024..2b195e2dcb957d630bf4478e3204fc5d76a895c5 100644
(file)
--- a/
c-bindings-gen/src/types.rs
+++ b/
c-bindings-gen/src/types.rs
@@
-612,7
+612,7
@@
impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
}
/// Gets the C-mapped type for types which are outside of the crate, or which are manually
/// ignored by for some reason need mapping anyway.
}
/// Gets the C-mapped type for types which are outside of the crate, or which are manually
/// ignored by for some reason need mapping anyway.
- fn c_type_from_path<'b>(&self, full_path: &'b str, is_ref: bool, ptr_for_ref: bool) -> Option<&'b str> {
+ fn c_type_from_path<'b>(&self, full_path: &'b str, is_ref: bool,
_
ptr_for_ref: bool) -> Option<&'b str> {
if self.is_primitive(full_path) {
return Some(full_path);
}
if self.is_primitive(full_path) {
return Some(full_path);
}
@@
-804,7
+804,7
@@
impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
_ => None,
}.map(|s| s.to_owned())
}
_ => None,
}.map(|s| s.to_owned())
}
- fn to_c_conversion_inline_prefix_from_path(&self, full_path: &str, is_ref: bool, ptr_for_ref: bool) -> Option<String> {
+ fn to_c_conversion_inline_prefix_from_path(&self, full_path: &str, is_ref: bool,
_
ptr_for_ref: bool) -> Option<String> {
if self.is_primitive(full_path) {
return Some("".to_owned());
}
if self.is_primitive(full_path) {
return Some("".to_owned());
}
@@
-860,7
+860,7
@@
impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
_ => None,
}.map(|s| s.to_owned())
}
_ => None,
}.map(|s| s.to_owned())
}
- fn to_c_conversion_inline_suffix_from_path(&self, full_path: &str, is_ref: bool, ptr_for_ref: bool) -> Option<String> {
+ fn to_c_conversion_inline_suffix_from_path(&self, full_path: &str, is_ref: bool,
_
ptr_for_ref: bool) -> Option<String> {
if self.is_primitive(full_path) {
return Some("".to_owned());
}
if self.is_primitive(full_path) {
return Some("".to_owned());
}