File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -394,7 +394,6 @@ where
394
394
/// [`Cow<'a, str>`]: std::borrow::Cow
395
395
/// [`Cow::Borrowed`]: std::borrow::Cow::Borrowed
396
396
/// [`Cow::Owned`]: std::borrow::Cow::Owned
397
-
398
397
pub trait FromPyObject < ' a , ' py > : Sized {
399
398
/// Extracts `Self` from the bound smart pointer `obj`.
400
399
///
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ impl<'py> IntoPyObject<'py> for &OsString {
226
226
227
227
#[ cfg( test) ]
228
228
mod tests {
229
- use crate :: types:: { PyAnyMethods , PyString , PyStringMethods } ;
229
+ use crate :: types:: { PyString , PyStringMethods } ;
230
230
use crate :: { BoundObject , IntoPyObject , Python } ;
231
231
use std:: fmt:: Debug ;
232
232
use std:: {
@@ -238,6 +238,7 @@ mod tests {
238
238
#[ cfg( not( windows) ) ]
239
239
fn test_non_utf8_conversion ( ) {
240
240
Python :: with_gil ( |py| {
241
+ use crate :: types:: PyAnyMethods ;
241
242
#[ cfg( not( target_os = "wasi" ) ) ]
242
243
use std:: os:: unix:: ffi:: OsStrExt ;
243
244
#[ cfg( target_os = "wasi" ) ]
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ impl<'py> IntoPyObject<'py> for &PathBuf {
144
144
145
145
#[ cfg( test) ]
146
146
mod tests {
147
- use crate :: types:: { PyAnyMethods , PyString , PyStringMethods } ;
147
+ use crate :: types:: { PyString , PyStringMethods } ;
148
148
use crate :: { BoundObject , IntoPyObject , Python } ;
149
149
use std:: borrow:: Cow ;
150
150
use std:: fmt:: Debug ;
@@ -154,6 +154,7 @@ mod tests {
154
154
#[ cfg( not( windows) ) ]
155
155
fn test_non_utf8_conversion ( ) {
156
156
Python :: with_gil ( |py| {
157
+ use crate :: types:: PyAnyMethods ;
157
158
use std:: ffi:: OsStr ;
158
159
#[ cfg( not( target_os = "wasi" ) ) ]
159
160
use std:: os:: unix:: ffi:: OsStrExt ;
You can’t perform that action at this time.
0 commit comments