Skip to content

Commit

Permalink
Remove useless .into() to cleanup clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
simu committed Dec 2, 2024
1 parent a8b420a commit 3842ec7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/inventory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/node/nodeinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -205,6 +205,6 @@ impl NodeInfo {
"timestamp",
self.reclass.render_time.format("%c").to_string(),
)?;
Ok(dict.into())
Ok(dict)
}
}

0 comments on commit 3842ec7

Please sign in to comment.