Inline some trivial store accessors

These were showing up in some profiles, but they're trivial functions,
so `#[inline]` them.
This commit is contained in:
Alex Crichton
2021-08-31 08:37:19 -07:00
parent 230159efa7
commit 6b5e21d80e

View File

@@ -726,6 +726,7 @@ impl StoreInnermost {
Ok(())
}
#[inline]
pub fn async_support(&self) -> bool {
cfg!(feature = "async") && self.engine().config().async_support
@@ -736,10 +737,12 @@ impl StoreInnermost {
&self.engine
}
#[inline]
pub fn store_data(&self) -> &StoreData {
&self.store_data
}
#[inline]
pub fn store_data_mut(&mut self) -> &mut StoreData {
&mut self.store_data
}