Skip to content

Commit a2d50cf

Browse files
committed
chore: fmt
1 parent 12c0e9c commit a2d50cf

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/cubejs-backend-native/src/cross/clrepr_python.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,10 @@ impl CLRepr {
193193
Ok(match self {
194194
CLRepr::Object(obj) => Self::into_py_dict_impl(obj, py)?,
195195
other => {
196-
return Err(PyErr::new::<PyNotImplementedError, _>(
197-
"Unable to represent JsFunction in Python",
198-
))
196+
return Err(PyErr::new::<PyNotImplementedError, _>(format!(
197+
"Unable to convert {:?} into PyDict",
198+
other.kind()
199+
)))
199200
}
200201
})
201202
}

packages/cubejs-backend-native/src/python/runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use neon::prelude::*;
77
use neon::types::Deferred;
88
use once_cell::sync::OnceCell;
99
use pyo3::prelude::*;
10-
use pyo3::types::{PyDict, PyFunction, PyTuple};
10+
use pyo3::types::{PyFunction, PyTuple};
1111
use std::fmt::Formatter;
1212
use std::future::Future;
1313
use std::pin::Pin;

0 commit comments

Comments
 (0)