mirror of https://git.sr.ht/~stygianentity/bincode
Make config() inline(always)
Without this we end up generating code for all configs unless LTO is on.
This commit is contained in:
parent
d8704644d7
commit
20da2c841a
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue