Skip to content

Commit cb65346

Browse files
committed
fix clippy
1 parent 49e17bd commit cb65346

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
@@ -289,7 +289,6 @@ impl<'py, T> IntoPyObjectExt<'py> for T where T: IntoPyObject<'py> {}
289289
/// [`Cow<'a, str>`]: std::borrow::Cow
290290
/// [`Cow::Borrowed`]: std::borrow::Cow::Borrowed
291291
/// [`Cow::Owned`]: std::borrow::Cow::Owned
292-
293292
pub trait FromPyObject<'a, 'py>: Sized {
294293
/// Provides the type hint information for this type when it appears as an argument.
295294
///

src/conversions/std/osstr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ mod tests {
179179
#[cfg(not(windows))]
180180
fn test_non_utf8_conversion() {
181181
Python::attach(|py| {
182+
use crate::types::PyAnyMethods;
182183
#[cfg(not(target_os = "wasi"))]
183184
use std::os::unix::ffi::OsStrExt;
184185
#[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::attach(|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)