mirror of
https://github.com/actix/actix-web.git
synced 2024-11-26 03:21:08 +00:00
Remove unnecesary clones in extractor configs (#2884)
Co-authored-by: erhodes <erik@space-nav.com> Co-authored-by: Rob Ede <robjtede@icloud.com>
This commit is contained in:
parent
894effb856
commit
4d3689db5e
2 changed files with 2 additions and 2 deletions
|
@ -290,7 +290,7 @@ const DEFAULT_CONFIG: JsonConfig = JsonConfig {
|
||||||
|
|
||||||
impl Default for JsonConfig {
|
impl Default for JsonConfig {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
DEFAULT_CONFIG.clone()
|
DEFAULT_CONFIG
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -271,7 +271,7 @@ const DEFAULT_CONFIG: PayloadConfig = PayloadConfig {
|
||||||
|
|
||||||
impl Default for PayloadConfig {
|
impl Default for PayloadConfig {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
DEFAULT_CONFIG.clone()
|
DEFAULT_CONFIG
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue