mirror of https://github.com/fafhrd91/actix-web
removed unnecesary clones in extractor configs
This commit is contained in:
parent
894effb856
commit
764b801299
|
@ -290,7 +290,7 @@ const DEFAULT_CONFIG: JsonConfig = JsonConfig {
|
|||
|
||||
impl Default for JsonConfig {
|
||||
fn default() -> Self {
|
||||
DEFAULT_CONFIG.clone()
|
||||
DEFAULT_CONFIG
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -271,7 +271,7 @@ const DEFAULT_CONFIG: PayloadConfig = PayloadConfig {
|
|||
|
||||
impl Default for PayloadConfig {
|
||||
fn default() -> Self {
|
||||
DEFAULT_CONFIG.clone()
|
||||
DEFAULT_CONFIG
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue