We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 295c754 commit 97ce1daCopy full SHA for 97ce1da
1 file changed
build.rs
@@ -1043,7 +1043,7 @@ impl PythonBindGenerator {
1043
self.file_contents.push(Cow::Borrowed(" .as_ref()"));
1044
if Self::BASE_TYPES.into_iter().any(|t| variable_type.contains(t)) {
1045
self.file_contents
1046
- .push(Cow::Borrowed(" .map(ToString::to_string)"));
+ .push(Cow::Borrowed(" .map(|i| format!(\"{i:?}\"))"));
1047
} else {
1048
1049
.push(Cow::Borrowed(" .map(|x| x.borrow(py).__repr__(py))"));
0 commit comments