chore: Beta Clippy suggestions (#6422)

This commit is contained in:
Hocuri
2025-01-11 17:58:38 +01:00
committed by GitHub
parent de63527d94
commit 5dc8788eab
4 changed files with 4 additions and 8 deletions

View File

@@ -1111,7 +1111,9 @@ impl Message {
/// Updates message state from the vCard attachment.
pub(crate) async fn try_set_vcard(&mut self, context: &Context, path: &Path) -> Result<()> {
let vcard = fs::read(path).await.context("Could not read {path}")?;
let vcard = fs::read(path)
.await
.with_context(|| format!("Could not read {path:?}"))?;
if let Some(summary) = get_vcard_summary(&vcard) {
self.param.set(Param::Summary1, summary);
} else {