Skip to content

Commit 00a521d

Browse files
committed
clippy fix
1 parent 0dc1bea commit 00a521d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ fn pybgpkit_parser(_py: Python, m: &Bound<PyModule>) -> PyResult<()> {
104104

105105
#[pyo3(name = "__str__")]
106106
fn str_repr(&self) -> PyResult<String> {
107-
Ok(format!("{}", serde_json::to_string(self).unwrap()))
107+
Ok(serde_json::to_string(self).unwrap().to_string())
108108
}
109109
}
110110

0 commit comments

Comments
 (0)