common: Use serde(borrow) to avoid unnecessary copying
This commit is contained in:
parent
a7bead5466
commit
4693179cb1
@ -109,6 +109,7 @@ impl<'de> Deserialize<'de> for JoinRule {
|
|||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
struct ExtractType<'a> {
|
struct ExtractType<'a> {
|
||||||
|
#[serde(borrow)]
|
||||||
join_rule: Option<Cow<'a, str>>,
|
join_rule: Option<Cow<'a, str>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user