Skip to content

Commit a6fd2cd

Browse files
committed
fix fmt
1 parent 3e5b196 commit a6fd2cd

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

vm/src/protocol/sequence.rs

+3-12
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,7 @@ impl PySequence<'_> {
152152
return Ok(ret);
153153
}
154154
}
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())))
159156
}
160157

161158
pub fn inplace_concat(&self, other: &PyObject, vm: &VirtualMachine) -> PyResult {
@@ -193,10 +190,7 @@ impl PySequence<'_> {
193190
return Ok(ret);
194191
}
195192
}
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())))
200194
}
201195

202196
pub fn get_item(&self, i: isize, vm: &VirtualMachine) -> PyResult {
@@ -241,10 +235,7 @@ impl PySequence<'_> {
241235
};
242236
mapping.subscript(&slice.into_object(vm), vm)
243237
} 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())))
248239
}
249240
}
250241

0 commit comments

Comments
 (0)