From 20a0ab7a47f75053b6aeb4b940c8f536a9d70b8a Mon Sep 17 00:00:00 2001 From: kennytm Date: Mon, 22 Apr 2019 03:07:01 +0800 Subject: [PATCH] Mark `FixedOffset::{local_minus_utc, utc_minus_local}` as `#[inline]`. --- src/offset/fixed.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/offset/fixed.rs b/src/offset/fixed.rs index ef861ce..5b69ef0 100644 --- a/src/offset/fixed.rs +++ b/src/offset/fixed.rs @@ -86,11 +86,13 @@ impl FixedOffset { } /// Returns the number of seconds to add to convert from UTC to the local time. + #[inline] pub fn local_minus_utc(&self) -> i32 { self.local_minus_utc } /// Returns the number of seconds to add to convert from the local time to UTC. + #[inline] pub fn utc_minus_local(&self) -> i32 { -self.local_minus_utc }