Skip to content

Commit 4e91f6a

Browse files
committed
cargo fmt
1 parent 5e08620 commit 4e91f6a

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

common/src/encodings.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ struct DecodeError<'a> {
137137

138138
/// # Safety
139139
/// `v[..valid_up_to]` must be valid utf8
140-
const unsafe fn make_decode_err(v: &[u8], valid_up_to: usize, err_len: Option<usize>) -> DecodeError<'_> {
140+
const unsafe fn make_decode_err(
141+
v: &[u8],
142+
valid_up_to: usize,
143+
err_len: Option<usize>,
144+
) -> DecodeError<'_> {
141145
let (valid_prefix, rest) = unsafe { v.split_at_unchecked(valid_up_to) };
142146
let valid_prefix = unsafe { core::str::from_utf8_unchecked(valid_prefix) };
143147
DecodeError {

vm/src/builtins/traceback.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ impl PyPayload for PyTraceback {
2727

2828
#[pyclass]
2929
impl PyTraceback {
30-
pub const fn new(next: Option<PyRef<Self>>, frame: FrameRef, lasti: u32, lineno: LineNumber) -> Self {
30+
pub const fn new(
31+
next: Option<PyRef<Self>>,
32+
frame: FrameRef,
33+
lasti: u32,
34+
lineno: LineNumber,
35+
) -> Self {
3136
PyTraceback {
3237
next: PyMutex::new(next),
3338
frame,

0 commit comments

Comments
 (0)