Make config() inline(always)

Without this we end up generating code for all configs unless LTO is on.
This commit is contained in:
Jeff Muizelaar 2018-11-20 11:02:58 -05:00 committed by Ty Overby
parent d8704644d7
commit 20da2c841a
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ pub trait SerializerAcceptor {
/// | Byte limit | Endianness | /// | Byte limit | Endianness |
/// |------------|------------| /// |------------|------------|
/// | Unlimited | Little | /// | Unlimited | Little |
#[inline(always)]
pub fn config() -> Config { pub fn config() -> Config {
Config::new() Config::new()
} }