Skip to content

Commit dd69890

Browse files
committed
fmt
1 parent 4120425 commit dd69890

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ pub use crate::mono_hash_map::MonoHashMap;
8989
pub use crate::operator::EvalContextExt as OperatorEvalContextExt;
9090
pub use crate::range_map::RangeMap;
9191
pub use crate::stacked_borrows::{
92-
CallId, EvalContextExt as StackedBorEvalContextExt, Item, Permission, SbTag, SbTagExtra,
93-
Stack, Stacks,
92+
CallId, EvalContextExt as StackedBorEvalContextExt, Item, Permission, SbTag, SbTagExtra, Stack,
93+
Stacks,
9494
};
9595
pub use crate::sync::{CondvarId, EvalContextExt as SyncEvalContextExt, MutexId, RwLockId};
9696
pub use crate::thread::{

src/stacked_borrows.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -403,12 +403,7 @@ impl<'tcx> Stack {
403403
tag, item
404404
),
405405
None,
406-
tag.and_then(|tag| {
407-
alloc_history.get_logs_relevant_to(
408-
tag,
409-
Some(item.tag),
410-
)
411-
}),
406+
tag.and_then(|tag| alloc_history.get_logs_relevant_to(tag, Some(item.tag))),
412407
))?
413408
} else {
414409
Err(err_sb_ub(

src/stacked_borrows/diagnostics.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ impl AllocHistory {
148148
err_sb_ub(
149149
format!("{}{}", action, error_cause(stack, derived_from)),
150150
Some(operation_summary("a reborrow", alloc_id, alloc_range)),
151-
derived_from.and_then(|derived_from| {
152-
self.get_logs_relevant_to(derived_from, None)
153-
}),
151+
derived_from.and_then(|derived_from| self.get_logs_relevant_to(derived_from, None)),
154152
)
155153
}
156154

0 commit comments

Comments
 (0)