mirror of
https://github.com/simonask/libyaml-safer
synced 2024-11-10 05:44:17 +00:00
Lint: &mut Vec to &[]
This commit is contained in:
parent
1e8de81f66
commit
b865e1459b
1 changed files with 3 additions and 3 deletions
|
@ -190,7 +190,7 @@ fn yaml_parser_register_anchor(
|
|||
|
||||
fn yaml_parser_load_node_add(
|
||||
document: &mut Document,
|
||||
ctx: &mut Vec<i32>,
|
||||
ctx: &[i32],
|
||||
index: i32,
|
||||
) -> Result<(), ComposerError> {
|
||||
if ctx.is_empty() {
|
||||
|
@ -229,7 +229,7 @@ fn yaml_parser_load_alias(
|
|||
parser: &mut Parser,
|
||||
event: Event,
|
||||
document: &mut Document,
|
||||
ctx: &mut Vec<i32>,
|
||||
ctx: &[i32],
|
||||
) -> Result<(), ComposerError> {
|
||||
let anchor: &str = if let EventData::Alias { anchor } = &event.data {
|
||||
anchor
|
||||
|
@ -250,7 +250,7 @@ fn yaml_parser_load_scalar(
|
|||
parser: &mut Parser,
|
||||
event: Event,
|
||||
document: &mut Document,
|
||||
ctx: &mut Vec<i32>,
|
||||
ctx: &[i32],
|
||||
) -> Result<(), ComposerError> {
|
||||
let EventData::Scalar {
|
||||
mut tag,
|
||||
|
|
Loading…
Reference in a new issue