Skip to content

Commit 6043e97

Browse files
fix: resolve clippy redundant closure lint in substrait.rs
1 parent a7de15e commit 6043e97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/substrait.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ impl PyPlan {
4545

4646
/// Get the JSON representation of the substrait plan
4747
fn to_json(&self) -> PyDataFusionResult<String> {
48-
let json = serde_json::to_string_pretty(&self.plan).map_err(|e| to_datafusion_err(e))?;
48+
let json = serde_json::to_string_pretty(&self.plan).map_err(to_datafusion_err)?;
4949
Ok(json)
5050
}
5151

5252
/// Parse a Substrait Plan from its JSON representation
5353
#[staticmethod]
5454
fn from_json(json: &str) -> PyDataFusionResult<PyPlan> {
55-
let plan: Plan = serde_json::from_str(json).map_err(|e| to_datafusion_err(e))?;
55+
let plan: Plan = serde_json::from_str(json).map_err(to_datafusion_err)?;
5656
Ok(PyPlan { plan })
5757
}
5858
}

0 commit comments

Comments
 (0)