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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn async_support(&self) -> bool {
|
pub fn async_support(&self) -> bool {
|
||||||
cfg!(feature = "async") && self.engine().config().async_support
|
cfg!(feature = "async") && self.engine().config().async_support
|
||||||
@@ -736,10 +737,12 @@ impl StoreInnermost {
|
|||||||
&self.engine
|
&self.engine
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn store_data(&self) -> &StoreData {
|
pub fn store_data(&self) -> &StoreData {
|
||||||
&self.store_data
|
&self.store_data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
pub fn store_data_mut(&mut self) -> &mut StoreData {
|
pub fn store_data_mut(&mut self) -> &mut StoreData {
|
||||||
&mut self.store_data
|
&mut self.store_data
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user