Skip to content

Commit

Permalink
fix: clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TommYDeeee committed Nov 22, 2023
1 parent 57c9ffd commit 92e2d34
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion yara-x-proto-yaml/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ impl<W: Write> Serializer<W> {
Some(e) => write!(self.output, "{}", e.name())?,
None => write!(self.output, "{}", v)?,
},
ReflectValueRef::Message(msg) => self.write_msg(&msg)?,
ReflectValueRef::Message(msg) => self.write_msg(msg)?,
}
Ok(())
}
Expand Down
24 changes: 12 additions & 12 deletions yara-x/src/wasm/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,38 +467,38 @@ mod tests {
assert_eq!(
text,
r#"(module
(func (;120;) (type 1) (result i32)
(func (;122;) (type 1) (result i32)
i32.const 0
global.set 2
i32.const 0
global.set 3
call 121
call 122
call 123
call 124
global.get 3
)
(func (;121;) (type 0)
(func (;123;) (type 0)
block ;; label = @1
call 123
call 125
end
block ;; label = @1
call 124
call 126
end
)
(func (;122;) (type 0)
(func (;124;) (type 0)
block ;; label = @1
call 125
call 127
end
)
(func (;123;) (type 0)
(func (;125;) (type 0)
i32.const 4
)
(func (;124;) (type 0)
(func (;126;) (type 0)
i32.const 5
)
(func (;125;) (type 0)
(func (;127;) (type 0)
i32.const 6
)
(export "main" (func 120))
(export "main" (func 122))
)"#
);
}
Expand Down

0 comments on commit 92e2d34

Please sign in to comment.