Skip to content

Commit

Permalink
Use Clone instead of Copy
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind committed Jun 18, 2024
1 parent 78dffff commit b67fe7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/sui-types/src/deny_list_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ pub struct Config {

/// Rust representation of the Move type 0x2::config::Setting.
#[derive(Debug, Serialize, Deserialize, Clone)]
struct Setting<V: Copy + fmt::Debug> {
struct Setting<V: Clone + fmt::Debug> {
data: Option<SettingData<V>>,
}

/// Rust representation of the Move type 0x2::config::SettingData.
#[derive(Debug, Serialize, Deserialize, Clone)]
struct SettingData<V: Copy + fmt::Debug> {
struct SettingData<V: Clone + fmt::Debug> {
newer_value_epoch: u64,
newer_value: V,
older_value_opt: Option<V>,
Expand Down Expand Up @@ -116,7 +116,7 @@ fn read_config_setting<K, V>(
) -> Option<V>
where
K: MoveTypeTagTrait + Serialize + DeserializeOwned + fmt::Debug,
V: Copy + fmt::Debug + Serialize + DeserializeOwned,
V: Clone + fmt::Debug + Serialize + DeserializeOwned,
{
let setting: Setting<V> = {
match get_dynamic_field_from_store(object_store, *config.id.object_id(), &setting_name) {
Expand Down

0 comments on commit b67fe7a

Please sign in to comment.