Resolve unused_variables lints

This commit is contained in:
David Tolnay 2022-07-06 19:19:07 -07:00
parent 14ef08e7b6
commit ca3436c9eb
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
4 changed files with 5 additions and 5 deletions

View file

@ -89,7 +89,7 @@ pub unsafe extern "C" fn yaml_string_join(
a_end: *mut *mut yaml_char_t,
b_start: *mut *mut yaml_char_t,
b_pointer: *mut *mut yaml_char_t,
b_end: *mut *mut yaml_char_t,
_b_end: *mut *mut yaml_char_t,
) -> libc::c_int {
if *b_start == *b_pointer {
return 1 as libc::c_int;

View file

@ -293,7 +293,7 @@ unsafe extern "C" fn yaml_emitter_anchor_node(emitter: *mut yaml_emitter_t, inde
}
}
unsafe extern "C" fn yaml_emitter_generate_anchor(
emitter: *mut yaml_emitter_t,
_emitter: *mut yaml_emitter_t,
anchor_id: libc::c_int,
) -> *mut yaml_char_t {
let anchor: *mut yaml_char_t = yaml_malloc(16 as libc::c_int as size_t) as *mut yaml_char_t;

View file

@ -1143,7 +1143,7 @@ unsafe extern "C" fn yaml_emitter_emit_node(
}
unsafe extern "C" fn yaml_emitter_emit_alias(
mut emitter: *mut yaml_emitter_t,
event: *mut yaml_event_t,
_event: *mut yaml_event_t,
) -> libc::c_int {
if yaml_emitter_process_anchor(emitter) == 0 {
return 0 as libc::c_int;
@ -1242,7 +1242,7 @@ unsafe extern "C" fn yaml_emitter_emit_mapping_start(
return 1 as libc::c_int;
}
unsafe extern "C" fn yaml_emitter_check_empty_document(
emitter: *mut yaml_emitter_t,
_emitter: *mut yaml_emitter_t,
) -> libc::c_int {
return 0 as libc::c_int;
}

View file

@ -1,4 +1,4 @@
#![allow(non_camel_case_types, unused_parens, unused_variables)]
#![allow(non_camel_case_types, unused_parens)]
use std::mem;