File tree 1 file changed +3
-12
lines changed
1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -152,10 +152,7 @@ impl PySequence<'_> {
152
152
return Ok ( ret) ;
153
153
}
154
154
}
155
- Err ( vm. new_type_error ( format ! (
156
- "'{}' object can't be repeated" ,
157
- self . obj. class( )
158
- ) ) )
155
+ Err ( vm. new_type_error ( format ! ( "'{}' object can't be repeated" , self . obj. class( ) ) ) )
159
156
}
160
157
161
158
pub fn inplace_concat ( & self , other : & PyObject , vm : & VirtualMachine ) -> PyResult {
@@ -193,10 +190,7 @@ impl PySequence<'_> {
193
190
return Ok ( ret) ;
194
191
}
195
192
}
196
- Err ( vm. new_type_error ( format ! (
197
- "'{}' object can't be repeated" ,
198
- self . obj. class( )
199
- ) ) )
193
+ Err ( vm. new_type_error ( format ! ( "'{}' object can't be repeated" , self . obj. class( ) ) ) )
200
194
}
201
195
202
196
pub fn get_item ( & self , i : isize , vm : & VirtualMachine ) -> PyResult {
@@ -241,10 +235,7 @@ impl PySequence<'_> {
241
235
} ;
242
236
mapping. subscript ( & slice. into_object ( vm) , vm)
243
237
} else {
244
- Err ( vm. new_type_error ( format ! (
245
- "'{}' object is unsliceable" ,
246
- self . obj. class( )
247
- ) ) )
238
+ Err ( vm. new_type_error ( format ! ( "'{}' object is unsliceable" , self . obj. class( ) ) ) )
248
239
}
249
240
}
250
241
You can’t perform that action at this time.
0 commit comments