From 2915f50fc4647367ce483007953ded399bdae7fb Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 27 Nov 2019 14:31:16 -0800 Subject: [PATCH] fix compile error --- pyo3-derive-backend/src/pyclass.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyo3-derive-backend/src/pyclass.rs b/pyo3-derive-backend/src/pyclass.rs index 311f5c7c..b4a8d6fe 100644 --- a/pyo3-derive-backend/src/pyclass.rs +++ b/pyo3-derive-backend/src/pyclass.rs @@ -262,7 +262,7 @@ fn impl_class( doc: syn::Lit, descriptors: Vec<(syn::Field, Vec)>, ) -> TokenStream { - let cls_name = get_class_python_name(cls, attr); + let cls_name = get_class_python_name(cls, attr).to_string(); let extra = { if let Some(freelist) = &attr.freelist {