Skip to content

Commit 1f8181b

Browse files
committed
Update formatting to be consistent with rustfmt included in 1.34
1 parent 5676568 commit 1f8181b

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

parser/src/lexer.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,11 @@ where
826826
}
827827
_ => {
828828
let tok_end = self.get_pos();
829-
return Some(Ok((tok_start, Tok::DoubleSlash, tok_end)));
829+
return Some(Ok((
830+
tok_start,
831+
Tok::DoubleSlash,
832+
tok_end,
833+
)));
830834
}
831835
}
832836
}

vm/src/obj/objbytes.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ pub fn init(context: &PyContext) {
6262
PyBytesRef::extend_class(context, &context.bytes_type);
6363
let bytes_type = &context.bytes_type;
6464
extend_class!(context, bytes_type, {
65-
"fromhex" => context.new_rustfunc(PyBytesRef::fromhex),
66-
});
65+
"fromhex" => context.new_rustfunc(PyBytesRef::fromhex),
66+
});
6767
let bytesiterator_type = &context.bytesiterator_type;
6868
extend_class!(context, bytesiterator_type, {
69-
"__next__" => context.new_rustfunc(PyBytesIteratorRef::next),
70-
"__iter__" => context.new_rustfunc(PyBytesIteratorRef::iter),
71-
});
69+
"__next__" => context.new_rustfunc(PyBytesIteratorRef::next),
70+
"__iter__" => context.new_rustfunc(PyBytesIteratorRef::iter),
71+
});
7272
}
7373

7474
#[pyimpl(__inside_vm)]

vm/src/obj/objsuper.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ fn super_new(
127127
match vm.get_locals().get_item_option(first_arg, vm)? {
128128
Some(obj) => obj.clone(),
129129
_ => {
130-
return Err(vm
131-
.new_type_error(format!("super arguement {} was not supplied", first_arg)));
130+
return Err(vm.new_type_error(format!(
131+
"super arguement {} was not supplied",
132+
first_arg
133+
)));
132134
}
133135
}
134136
} else {

0 commit comments

Comments
 (0)