mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-24 05:18:00 +00:00
Inline is_human_readable
This commit is contained in:
@@ -1019,6 +1019,7 @@ pub trait Deserializer<'de>: Sized {
|
||||
///
|
||||
/// NOTE: Implementing this method and returning `false` is considered a breaking
|
||||
/// change as it may alter how any given type tries to deserialize itself.
|
||||
#[inline]
|
||||
fn is_human_readable(&self) -> bool { true }
|
||||
}
|
||||
|
||||
|
||||
@@ -1371,6 +1371,7 @@ pub trait Serializer: Sized {
|
||||
///
|
||||
/// NOTE: Implementing this method and returning `false` is considered a breaking
|
||||
/// change as it may alter how any given type tries to serialize itself.
|
||||
#[inline]
|
||||
fn is_human_readable(&self) -> bool { true }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user