diff --git a/src/inventory.rs b/src/inventory.rs index ebb9a24..e9c8aa2 100644 --- a/src/inventory.rs +++ b/src/inventory.rs @@ -90,7 +90,7 @@ impl Inventory { let ts = Local::now(); reclass_dict.set_item("timestamp", ts.format("%c").to_string())?; dict.set_item("__reclass__", reclass_dict)?; - Ok(dict.into()) + Ok(dict) } } diff --git a/src/node/nodeinfo.rs b/src/node/nodeinfo.rs index 41f98fe..d11c2c5 100644 --- a/src/node/nodeinfo.rs +++ b/src/node/nodeinfo.rs @@ -187,7 +187,7 @@ impl NodeInfo { )?; dict.set_item("exports", self.exports(py)?)?; dict.set_item("parameters", self.parameters(py)?)?; - Ok(dict.into()) + Ok(dict) } /// Returns the NodeInfo `meta` field as a PyDict @@ -205,6 +205,6 @@ impl NodeInfo { "timestamp", self.reclass.render_time.format("%c").to_string(), )?; - Ok(dict.into()) + Ok(dict) } }