common: Use serde(borrow) to avoid unnecessary copying

This commit is contained in:
Jonas Platte 2022-03-14 19:27:29 +01:00
parent a7bead5466
commit 4693179cb1
No known key found for this signature in database
GPG Key ID: BBA95679259D342F

View File

@ -109,6 +109,7 @@ impl<'de> Deserialize<'de> for JoinRule {
#[derive(Deserialize)]
struct ExtractType<'a> {
#[serde(borrow)]
join_rule: Option<Cow<'a, str>>,
}