Skip to content

Commit a47ecd7

Browse files
Auto-format: cargo fmt --all
1 parent 22a0a7c commit a47ecd7

File tree

1 file changed

+6
-2
lines changed
  • crates/vm/src/stdlib

1 file changed

+6
-2
lines changed

crates/vm/src/stdlib/io.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2473,7 +2473,10 @@ mod _io {
24732473
vm.call_method(&textio.buffer, "flush", ())
24742474
}
24752475

2476-
#[pyclass(with(Constructor, Initializer, Destructor, Iterable, IterNext), flags(BASETYPE))]
2476+
#[pyclass(
2477+
with(Constructor, Initializer, Destructor, Iterable, IterNext),
2478+
flags(BASETYPE)
2479+
)]
24772480
impl TextIOWrapper {
24782481
#[pymethod]
24792482
fn reconfigure(&self, args: TextIOWrapperArgs, vm: &VirtualMachine) -> PyResult<()> {
@@ -3362,7 +3365,8 @@ mod _io {
33623365
impl IterNext for TextIOWrapper {
33633366
fn slot_iternext(zelf: &PyObject, vm: &VirtualMachine) -> PyResult<PyIterReturn> {
33643367
// Set telling = false during iteration (matches CPython behavior)
3365-
let textio_ref: PyRef<TextIOWrapper> = zelf.downcast_ref::<TextIOWrapper>().unwrap().to_owned();
3368+
let textio_ref: PyRef<TextIOWrapper> =
3369+
zelf.downcast_ref::<TextIOWrapper>().unwrap().to_owned();
33663370
{
33673371
let mut textio = textio_ref.lock(vm)?;
33683372
textio.telling = false;

0 commit comments

Comments
 (0)