Add some more #[inline] annotations for trivial functions (#2817)
Looking at some profiles these or their related functions were all showing up, so this commit adds `#[inline]` to allow cross-crate inlining by default.
This commit is contained in:
@@ -970,6 +970,7 @@ impl InstanceHandle {
|
||||
/// of the internals, there's no lifetime tracking around its validity.
|
||||
/// You'll need to ensure that the returned handles all go out of scope at
|
||||
/// the same time.
|
||||
#[inline]
|
||||
pub unsafe fn clone(&self) -> InstanceHandle {
|
||||
InstanceHandle {
|
||||
instance: self.instance,
|
||||
|
||||
Reference in New Issue
Block a user