Skip to content

Commit 2e2cf36

Browse files
committed
fix clippy
1 parent c25153d commit 2e2cf36

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/conversion.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ where
394394
/// [`Cow<'a, str>`]: std::borrow::Cow
395395
/// [`Cow::Borrowed`]: std::borrow::Cow::Borrowed
396396
/// [`Cow::Owned`]: std::borrow::Cow::Owned
397-
398397
pub trait FromPyObject<'a, 'py>: Sized {
399398
/// Extracts `Self` from the bound smart pointer `obj`.
400399
///

src/conversions/std/osstr.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl<'py> IntoPyObject<'py> for &OsString {
226226

227227
#[cfg(test)]
228228
mod tests {
229-
use crate::types::{PyAnyMethods, PyString, PyStringMethods};
229+
use crate::types::{PyString, PyStringMethods};
230230
use crate::{BoundObject, IntoPyObject, Python};
231231
use std::fmt::Debug;
232232
use std::{
@@ -238,6 +238,7 @@ mod tests {
238238
#[cfg(not(windows))]
239239
fn test_non_utf8_conversion() {
240240
Python::with_gil(|py| {
241+
use crate::types::PyAnyMethods;
241242
#[cfg(not(target_os = "wasi"))]
242243
use std::os::unix::ffi::OsStrExt;
243244
#[cfg(target_os = "wasi")]

src/conversions/std/path.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl<'py> IntoPyObject<'py> for &PathBuf {
144144

145145
#[cfg(test)]
146146
mod tests {
147-
use crate::types::{PyAnyMethods, PyString, PyStringMethods};
147+
use crate::types::{PyString, PyStringMethods};
148148
use crate::{BoundObject, IntoPyObject, Python};
149149
use std::borrow::Cow;
150150
use std::fmt::Debug;
@@ -154,6 +154,7 @@ mod tests {
154154
#[cfg(not(windows))]
155155
fn test_non_utf8_conversion() {
156156
Python::with_gil(|py| {
157+
use crate::types::PyAnyMethods;
157158
use std::ffi::OsStr;
158159
#[cfg(not(target_os = "wasi"))]
159160
use std::os::unix::ffi::OsStrExt;

0 commit comments

Comments
 (0)