This commit is contained in:
Serial 2022-01-03 08:52:51 -05:00
parent a8e0edc16d
commit 77971ef9b0

View file

@ -758,7 +758,9 @@ impl Picture {
if desc_len > 0 && desc_len < size {
let pos = 12 + mime_len;
if let Ok(desc) = std::str::from_utf8(&content[pos..pos + desc_len]) {
if let Ok(desc) =
std::str::from_utf8(&content[pos..pos + desc_len])
{
description = Some(Cow::from(desc.to_string()));
}