Skip to content

Commit ebd62d0

Browse files
committed
Minor: clippy update warning
1 parent ab748c7 commit ebd62d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/dataframe.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,7 @@ fn build_formatter_config_from_python(formatter: &Bound<'_, PyAny>) -> PyResult<
181181
};
182182

183183
// Return the validated config, converting String error to PyErr
184-
config
185-
.validate()
186-
.map_err(|e| pyo3::exceptions::PyValueError::new_err(e))?;
184+
config.validate().map_err(PyValueError::new_err)?;
187185
Ok(config)
188186
}
189187

0 commit comments

Comments
 (0)