Skip to content

Commit

Permalink
Use clone_from instead of clone
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmostellar committed May 11, 2024
1 parent 87aa910 commit 556bc77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/user_setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn update_user_settings(setting_args: &UserSetting) -> Result<()> {
}

// 2. Unit
json_data.units = setting_args.units.clone();
json_data.units.clone_from(&setting_args.units);

let json_string = serde_json::to_string(&json_data)?;

Expand Down

0 comments on commit 556bc77

Please sign in to comment.