Do not convert a function call into a method call if the object is shared.

This commit is contained in:
Stephen Chung
2020-08-02 13:51:07 +08:00
parent b86c87253b
commit 747c0345f2
2 changed files with 11 additions and 9 deletions

View File

@@ -258,7 +258,7 @@ impl Dynamic {
}
/// Does this `Dynamic` hold a shared data type
/// instead of one of the support system primitive types?
/// instead of one of the supported system primitive types?
pub fn is_shared(&self) -> bool {
match self.0 {
#[cfg(not(feature = "no_shared"))]