impl fmt::Display for InvalidationCause {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
- InvalidationCause::Access(kind) => write!(f, "{}", kind),
+ InvalidationCause::Access(kind) => write!(f, "{kind}"),
InvalidationCause::Retag(perm, kind) =>
if *kind == RetagCause::FnEntry {
- write!(f, "{:?} FnEntry retag", perm)
+ write!(f, "{perm:?} FnEntry retag")
} else {
- write!(f, "{:?} retag", perm)
+ write!(f, "{perm:?} retag")
},
}
}
// this allocation.
if self.history.base.0.tag() == tag {
Some((
- format!("{:?} was created here, as the base tag for {:?}", tag, self.history.id),
+ format!("{tag:?} was created here, as the base tag for {:?}", self.history.id),
self.history.base.1.data()
))
} else {
self.offset.bytes(),
);
err_sb_ub(
- format!("{}{}", action, error_cause(stack, op.orig_tag)),
+ format!("{action}{}", error_cause(stack, op.orig_tag)),
Some(operation_summary(&op.cause.summary(), self.history.id, op.range)),
op.orig_tag.and_then(|orig_tag| self.get_logs_relevant_to(orig_tag, None)),
)
offset = self.offset.bytes(),
);
err_sb_ub(
- format!("{}{}", action, error_cause(stack, op.tag)),
+ format!("{action}{}", error_cause(stack, op.tag)),
Some(operation_summary("an access", self.history.id, op.range)),
op.tag.and_then(|tag| self.get_logs_relevant_to(tag, None)),
)