refactor: better value cloning
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ pub(crate) struct Api {
|
||||
|
||||
impl From<&Settings> for Api {
|
||||
fn from(value: &Settings) -> Self {
|
||||
let contact = contact::ContactApi::from(value.clone().email);
|
||||
let contact = contact::ContactApi::from(value.email.clone());
|
||||
let health = health::HealthApi;
|
||||
let meta = meta::MetaApi::from(&value.application);
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user