mirror of
https://github.com/simonask/libyaml-safer
synced 2025-02-21 06:48:30 +00:00
Deal with clippy lints
This commit is contained in:
parent
b41753a13d
commit
caad63746c
6 changed files with 9 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
clippy::cast_sign_loss,
|
||||
clippy::items_after_statements,
|
||||
clippy::let_underscore_drop,
|
||||
clippy::missing_errors_doc,
|
||||
clippy::missing_safety_doc,
|
||||
clippy::ptr_as_ptr,
|
||||
clippy::single_match_else,
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
clippy::cast_sign_loss,
|
||||
clippy::items_after_statements,
|
||||
clippy::let_underscore_drop,
|
||||
clippy::missing_errors_doc,
|
||||
clippy::missing_safety_doc,
|
||||
clippy::too_many_lines
|
||||
)]
|
||||
|
|
|
@ -534,7 +534,7 @@ unsafe fn yaml_parser_save_simple_key(parser: *mut yaml_parser_t) -> libc::c_int
|
|||
if (*parser).simple_key_allowed != 0 {
|
||||
let simple_key = yaml_simple_key_t {
|
||||
possible: 1_i32,
|
||||
required: required,
|
||||
required,
|
||||
token_number: ((*parser).tokens_parsed)
|
||||
.wrapping_add(((*parser).tokens.tail).c_offset_from((*parser).tokens.head)
|
||||
as libc::c_long as libc::c_ulong),
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#![allow(clippy::type_complexity)]
|
||||
|
||||
mod bin;
|
||||
#[path = "../src/bin/run-emitter-test-suite.rs"]
|
||||
#[allow(dead_code)]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#![allow(clippy::type_complexity)]
|
||||
|
||||
mod bin;
|
||||
#[path = "../src/bin/run-parser-test-suite.rs"]
|
||||
#[allow(dead_code)]
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#![allow(clippy::type_complexity)]
|
||||
|
||||
mod bin;
|
||||
#[path = "../src/bin/run-parser-test-suite.rs"]
|
||||
#[allow(dead_code)]
|
||||
|
|
Loading…
Add table
Reference in a new issue