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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user