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.
1 parent b6fb2e8 commit 150fa3aCopy full SHA for 150fa3a
src/validators/function.rs
@@ -356,13 +356,15 @@ impl ValidationInfo {
356
#[getter]
357
fn get_data(&self) -> PyResult<Py<PyDict>> {
358
self.data
359
- .clone()
+ .as_ref()
360
+ .cloned()
361
.ok_or_else(|| PyAttributeError::new_err("No attribute named 'data'"))
362
}
363
364
fn get_field_name(&self) -> PyResult<String> {
365
self.field_name
366
367
368
.ok_or_else(|| PyAttributeError::new_err("No attribute named 'field_name'"))
369
370
0 commit comments