Inline skip_field
This commit is contained in:
parent
95407a4ca5
commit
deca49315a
@ -1728,6 +1728,7 @@ pub trait SerializeStruct {
|
|||||||
T: Serialize;
|
T: Serialize;
|
||||||
|
|
||||||
/// Indicate that a struct field has been skipped.
|
/// Indicate that a struct field has been skipped.
|
||||||
|
#[inline]
|
||||||
fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error> {
|
fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error> {
|
||||||
let _ = key;
|
let _ = key;
|
||||||
Ok(())
|
Ok(())
|
||||||
@ -1779,6 +1780,7 @@ pub trait SerializeStructVariant {
|
|||||||
T: Serialize;
|
T: Serialize;
|
||||||
|
|
||||||
/// Indicate that a struct variant field has been skipped.
|
/// Indicate that a struct variant field has been skipped.
|
||||||
|
#[inline]
|
||||||
fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error> {
|
fn skip_field(&mut self, key: &'static str) -> Result<(), Self::Error> {
|
||||||
let _ = key;
|
let _ = key;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user