Skip to content

Commit b86f3c2

Browse files
committed
fix clippy
1 parent fa4a2b5 commit b86f3c2

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

src/conversion.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ impl<'py, T> IntoPyObjectExt<'py> for T where T: IntoPyObject<'py> {}
337337
/// [`Cow<'a, str>`]: std::borrow::Cow
338338
/// [`Cow::Borrowed`]: std::borrow::Cow::Borrowed
339339
/// [`Cow::Owned`]: std::borrow::Cow::Owned
340-
341340
pub trait FromPyObject<'a, 'py>: Sized {
342341
/// Extracts `Self` from the bound smart pointer `obj`.
343342
///

src/conversions/std/osstr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ mod tests {
180180
#[cfg(not(windows))]
181181
fn test_non_utf8_conversion() {
182182
Python::with_gil(|py| {
183+
use crate::types::PyAnyMethods;
183184
#[cfg(not(target_os = "wasi"))]
184185
use std::os::unix::ffi::OsStrExt;
185186
#[cfg(target_os = "wasi")]

src/conversions/std/path.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ mod tests {
9898
#[cfg(not(windows))]
9999
fn test_non_utf8_conversion() {
100100
Python::with_gil(|py| {
101+
use crate::types::PyAnyMethods;
101102
use std::ffi::OsStr;
102103
#[cfg(not(target_os = "wasi"))]
103104
use std::os::unix::ffi::OsStrExt;

0 commit comments

Comments
 (0)