Skip to content

Commit 02f87b3

Browse files
Auto-format: cargo fmt --all
1 parent b06ec0c commit 02f87b3

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

crates/vm/src/protocol/callable.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,7 @@ impl core::fmt::Display for TraceEvent {
9797
impl VirtualMachine {
9898
/// Call registered trace function.
9999
#[inline]
100-
pub(crate) fn trace_event(
101-
&self,
102-
event: TraceEvent,
103-
arg: Option<PyObjectRef>,
104-
) -> PyResult<()> {
100+
pub(crate) fn trace_event(&self, event: TraceEvent, arg: Option<PyObjectRef>) -> PyResult<()> {
105101
if self.use_tracing.get() {
106102
self._trace_event_inner(event, arg)
107103
} else {

crates/vm/src/stdlib/io.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5267,9 +5267,7 @@ mod fileio {
52675267
match fd {
52685268
Ok(fd) => (fd.into_raw(), Some(filename)),
52695269
Err(e) => {
5270-
return Err(OSErrorBuilder::with_filename_from_errno(
5271-
&e, filename, vm,
5272-
))
5270+
return Err(OSErrorBuilder::with_filename_from_errno(&e, filename, vm));
52735271
}
52745272
}
52755273
}

crates/vm/src/stdlib/itertools.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ mod decl {
1616
stdlib::sys,
1717
types::{Constructor, IterNext, Iterable, Representable, SelfIter},
1818
};
19+
use core::sync::atomic::{AtomicBool, Ordering};
1920
use crossbeam_utils::atomic::AtomicCell;
2021
use malachite_bigint::BigInt;
21-
use core::sync::atomic::{AtomicBool, Ordering};
2222
use num_traits::One;
2323

2424
use alloc::fmt;

0 commit comments

Comments
 (0)