Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Apr 26, 2022
1 parent 5949c72 commit 3277cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bee-storage/bee-storage-test/src/message_id_to_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub fn message_id_to_metadata_access<B: StorageBackend>(storage: &B) {
// not overwrite the old value.
{
let index = metadata.milestone_index().map_or(0, |i| *i + 1);
let mut metadata = metadata.clone();
let mut metadata = metadata;
metadata.set_milestone_index(MilestoneIndex(index));

InsertStrict::<MessageId, MessageMetadata>::insert_strict(storage, &message_id, &metadata).unwrap();
Expand Down

0 comments on commit 3277cd8

Please sign in to comment.