@@ -114,15 +114,15 @@ impl ToPyObject for Circle {
114
114
}
115
115
}
116
116
117
- impl < ' a > IntoPy < PyObject > for & ' a RustPoint {
117
+ impl IntoPy < PyObject > for & RustPoint {
118
118
#[ inline]
119
119
fn into_py ( self , py : Python < ' _ > ) -> PyObject {
120
120
let inner_value = self . inner ( ) ;
121
- return PyTuple :: new_bound (
121
+ PyTuple :: new_bound (
122
122
py,
123
123
vec ! [ inner_value. x( ) . into_py( py) , inner_value. y( ) . into_py( py) ] ,
124
124
)
125
- . into ( ) ;
125
+ . into ( )
126
126
}
127
127
}
128
128
@@ -157,7 +157,7 @@ impl<'a> FromSql<'a> for RustPoint {
157
157
}
158
158
}
159
159
160
- impl < ' a > IntoPy < PyObject > for & ' a RustRect {
160
+ impl IntoPy < PyObject > for & RustRect {
161
161
#[ inline]
162
162
fn into_py ( self , py : Python < ' _ > ) -> PyObject {
163
163
let inner_value = self . inner ( ) ;
@@ -173,7 +173,7 @@ impl<'a> IntoPy<PyObject> for &'a RustRect {
173
173
. into ( ) ,
174
174
) ;
175
175
}
176
- return PyTuple :: new_bound ( py, result_vec) . into ( ) ;
176
+ PyTuple :: new_bound ( py, result_vec) . into ( )
177
177
}
178
178
}
179
179
@@ -208,7 +208,7 @@ impl<'a> FromSql<'a> for RustRect {
208
208
}
209
209
}
210
210
211
- impl < ' a > IntoPy < PyObject > for & ' a RustLineString {
211
+ impl IntoPy < PyObject > for & RustLineString {
212
212
#[ inline]
213
213
fn into_py ( self , py : Python < ' _ > ) -> PyObject {
214
214
let inner_value = self . inner ( ) ;
@@ -224,7 +224,7 @@ impl<'a> IntoPy<PyObject> for &'a RustLineString {
224
224
if inner_value. is_closed ( ) {
225
225
return PyTuple :: new_bound ( py, result_vec) . into ( ) ;
226
226
}
227
- return PyList :: new_bound ( py, result_vec) . into ( ) ;
227
+ PyList :: new_bound ( py, result_vec) . into ( )
228
228
}
229
229
}
230
230
@@ -259,7 +259,7 @@ impl<'a> FromSql<'a> for RustLineString {
259
259
}
260
260
}
261
261
262
- impl < ' a > IntoPy < PyObject > for & ' a RustLineSegment {
262
+ impl IntoPy < PyObject > for & RustLineSegment {
263
263
#[ inline]
264
264
fn into_py ( self , py : Python < ' _ > ) -> PyObject {
265
265
let inner_value = self . inner ( ) ;
@@ -272,7 +272,7 @@ impl<'a> IntoPy<PyObject> for &'a RustLineSegment {
272
272
) ;
273
273
}
274
274
275
- return PyList :: new_bound ( py, result_vec) . into ( ) ;
275
+ PyList :: new_bound ( py, result_vec) . into ( )
276
276
}
277
277
}
278
278
@@ -445,7 +445,7 @@ impl<T: CoordNum> DivAssign<T> for Line<T> {
445
445
}
446
446
}
447
447
448
- impl < ' a > IntoPy < PyObject > for & ' a Line {
448
+ impl IntoPy < PyObject > for & Line {
449
449
#[ inline]
450
450
fn into_py ( self , py : Python < ' _ > ) -> PyObject {
451
451
let result_vec: Vec < Py < PyAny > > = vec ! [
@@ -454,7 +454,7 @@ impl<'a> IntoPy<PyObject> for &'a Line {
454
454
self . c( ) . into_py( py) ,
455
455
] ;
456
456
457
- return PyTuple :: new_bound ( py, result_vec) . into ( ) ;
457
+ PyTuple :: new_bound ( py, result_vec) . into ( )
458
458
}
459
459
}
460
460
@@ -563,7 +563,7 @@ impl<T: CoordFloat> Circle<T> {
563
563
}
564
564
}
565
565
566
- impl < ' a > IntoPy < PyObject > for & ' a Circle {
566
+ impl IntoPy < PyObject > for & Circle {
567
567
#[ inline]
568
568
fn into_py ( self , py : Python < ' _ > ) -> PyObject {
569
569
let center = self . center ( ) ;
@@ -573,7 +573,7 @@ impl<'a> IntoPy<PyObject> for &'a Circle {
573
573
self . radius( ) . into_py( py) ,
574
574
] ;
575
575
576
- return PyTuple :: new_bound ( py, result_vec) . into ( ) ;
576
+ PyTuple :: new_bound ( py, result_vec) . into ( )
577
577
}
578
578
}
579
579
0 commit comments