Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Icxolu committed May 24, 2024
1 parent ee1bc8d commit 1020cd8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/conversions/rust_decimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ impl<'py> IntoPyObject<'py> for Decimal {
#[cfg(test)]
mod test_rust_decimal {
use super::*;
use crate::err::PyErr;
use crate::types::dict::PyDictMethods;
use crate::types::PyDict;

Expand Down
2 changes: 1 addition & 1 deletion src/conversions/smallvec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ where
#[cfg(test)]
mod tests {
use super::*;
use crate::types::{PyDict, PyList};
use crate::types::PyDict;

#[test]
fn test_smallvec_into_py() {
Expand Down
2 changes: 1 addition & 1 deletion src/conversions/std/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl<'py> IntoPyObject<'py> for &String {
type Error = Infallible;

fn into_pyobject(self, py: Python<'py>) -> Result<Bound<'py, Self::Target>, Self::Error> {
Ok(PyString::new_bound(py, &self))
Ok(PyString::new_bound(py, self))
}
}

Expand Down

0 comments on commit 1020cd8

Please sign in to comment.