Inline is_human_readable

This commit is contained in:
David Tolnay 2017-10-15 16:54:48 -07:00
parent 030459a040
commit 2f58a20bc6
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 2 additions and 0 deletions

View File

@ -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 }
}

View File

@ -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 }
}