We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ObjectLike::to_string
1 parent 4018a17 commit d6b27deCopy full SHA for d6b27de
2 files changed
src/table.rs
@@ -941,7 +941,7 @@ impl ObjectLike for Table {
941
942
#[inline]
943
fn to_string(&self) -> Result<StdString> {
944
- Value::Table(self.clone()).to_string()
+ Value::Table(Table(self.0.copy())).to_string()
945
}
946
947
src/userdata/object.rs
@@ -88,6 +88,6 @@ impl ObjectLike for AnyUserData {
88
89
90
91
- Value::UserData(self.clone()).to_string()
+ Value::UserData(AnyUserData(self.0.copy(), self.1)).to_string()
92
93
0 commit comments