🐛 fix(gmail_client): resolve ownership issue in message summary
- clone subject to avoid ownership transfer in format! macro
This commit is contained in:
committed by
Jeremiah Russell
parent
37d02bd0bf
commit
d31f067a13
@@ -53,7 +53,7 @@ impl MessageSummary {
|
|||||||
return "***invalid date or subject***".to_string();
|
return "***invalid date or subject***".to_string();
|
||||||
};
|
};
|
||||||
let s = date[5..16].to_string();
|
let s = date[5..16].to_string();
|
||||||
let s = format!("{s}: {}", subject.to_string().elide(24));
|
let s = format!("{s}: {}", subject.clone().elide(24));
|
||||||
s
|
s
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user