Add a few inline directives in rustc_serialize.
This commit is contained in:
@@ -20,6 +20,7 @@ macro_rules! impl_debug_strict_add {
|
||||
($( $ty:ty )*) => {
|
||||
$(
|
||||
impl DebugStrictAdd for $ty {
|
||||
#[inline]
|
||||
fn debug_strict_add(self, other: Self) -> Self {
|
||||
if cfg!(debug_assertions) {
|
||||
self + other
|
||||
@@ -42,6 +43,7 @@ macro_rules! impl_debug_strict_sub {
|
||||
($( $ty:ty )*) => {
|
||||
$(
|
||||
impl DebugStrictSub for $ty {
|
||||
#[inline]
|
||||
fn debug_strict_sub(self, other: Self) -> Self {
|
||||
if cfg!(debug_assertions) {
|
||||
self - other
|
||||
|
||||
Reference in New Issue
Block a user