style(email): wrap over-width lines (cargo fmt)
Incidental `cargo fmt --all` normalization of two pre-existing over-width `.lock()` chains in DevEmailSink; no behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -341,7 +341,10 @@ impl DevEmailSink {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn push(&self, email: CapturedEmail) {
|
fn push(&self, email: CapturedEmail) {
|
||||||
let mut q = self.captured.lock().unwrap_or_else(std::sync::PoisonError::into_inner);
|
let mut q = self
|
||||||
|
.captured
|
||||||
|
.lock()
|
||||||
|
.unwrap_or_else(std::sync::PoisonError::into_inner);
|
||||||
while q.len() >= self.capacity {
|
while q.len() >= self.capacity {
|
||||||
q.pop_front();
|
q.pop_front();
|
||||||
}
|
}
|
||||||
@@ -351,7 +354,10 @@ impl DevEmailSink {
|
|||||||
/// Newest-first snapshot of the captured mail.
|
/// Newest-first snapshot of the captured mail.
|
||||||
#[must_use]
|
#[must_use]
|
||||||
pub fn snapshot(&self) -> Vec<CapturedEmail> {
|
pub fn snapshot(&self) -> Vec<CapturedEmail> {
|
||||||
let q = self.captured.lock().unwrap_or_else(std::sync::PoisonError::into_inner);
|
let q = self
|
||||||
|
.captured
|
||||||
|
.lock()
|
||||||
|
.unwrap_or_else(std::sync::PoisonError::into_inner);
|
||||||
q.iter().rev().cloned().collect()
|
q.iter().rev().cloned().collect()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user