Skip to content

Commit

Permalink
remove gratuitous clone
Browse files Browse the repository at this point in the history
  • Loading branch information
davepacheco committed Nov 16, 2023
1 parent 9c6e803 commit 281021f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sled-agent/src/rack_setup/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,11 +593,8 @@ impl ServiceInner {
}

for zone in &sled_config.zones {
// XXX-dap TODO-cleanup kind of a cheating way to use the
// existing implementation
let native_zone_config = zone.clone();
if let Some((dataset_name, dataset_address)) =
native_zone_config.dataset_name_and_address()
zone.dataset_name_and_address()
{
datasets.push(NexusTypes::DatasetCreateRequest {
zpool_id: dataset_name.pool().id(),
Expand Down

0 comments on commit 281021f

Please sign in to comment.