Skip to content

Commit 0a9a7c5

Browse files
committed
[bindings] Silence c-bindings-gen compile warnings
1 parent 6f5f27e commit 0a9a7c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

c-bindings-gen/src/types.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
612612
}
613613
/// Gets the C-mapped type for types which are outside of the crate, or which are manually
614614
/// ignored by for some reason need mapping anyway.
615-
fn c_type_from_path<'b>(&self, full_path: &'b str, is_ref: bool, ptr_for_ref: bool) -> Option<&'b str> {
615+
fn c_type_from_path<'b>(&self, full_path: &'b str, is_ref: bool, _ptr_for_ref: bool) -> Option<&'b str> {
616616
if self.is_primitive(full_path) {
617617
return Some(full_path);
618618
}
@@ -804,7 +804,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
804804
_ => None,
805805
}.map(|s| s.to_owned())
806806
}
807-
fn to_c_conversion_inline_prefix_from_path(&self, full_path: &str, is_ref: bool, ptr_for_ref: bool) -> Option<String> {
807+
fn to_c_conversion_inline_prefix_from_path(&self, full_path: &str, is_ref: bool, _ptr_for_ref: bool) -> Option<String> {
808808
if self.is_primitive(full_path) {
809809
return Some("".to_owned());
810810
}
@@ -860,7 +860,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
860860
_ => None,
861861
}.map(|s| s.to_owned())
862862
}
863-
fn to_c_conversion_inline_suffix_from_path(&self, full_path: &str, is_ref: bool, ptr_for_ref: bool) -> Option<String> {
863+
fn to_c_conversion_inline_suffix_from_path(&self, full_path: &str, is_ref: bool, _ptr_for_ref: bool) -> Option<String> {
864864
if self.is_primitive(full_path) {
865865
return Some("".to_owned());
866866
}

0 commit comments

Comments
 (0)