Skip to content

Commit

Permalink
Clippy and helios
Browse files Browse the repository at this point in the history
  • Loading branch information
smklein committed Jul 26, 2024
1 parent 24d93a8 commit 178e20e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sled-agent/src/rack_setup/plan/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ impl SledInfo {
// enumerates the valid zpool indexes.
let allocator = self
.u2_zpool_allocators
.entry(kind.clone())
.entry(kind)
.or_insert_with(|| Box::new(0..self.u2_zpools.len()));
match allocator.next() {
None => Err(PlanError::NotEnoughSleds),
Expand Down
4 changes: 2 additions & 2 deletions sled-storage/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1086,14 +1086,14 @@ impl StorageManager {
/// systems.
#[cfg(all(test, target_os = "illumos"))]
mod tests {
use crate::dataset::DatasetType;
use crate::disk::RawSyntheticDisk;
use crate::manager_test_harness::StorageManagerTestHarness;
use crate::resources::DiskManagementError;

use super::*;
use camino_tempfile::tempdir_in;
use omicron_common::api::external::Generation;
use omicron_common::disk::DatasetKind;
use omicron_common::ledger;
use omicron_test_utils::dev::test_setup_log;
use sled_hardware::DiskFirmware;
Expand Down Expand Up @@ -1562,7 +1562,7 @@ mod tests {
let dataset_id = Uuid::new_v4();
let zpool_name = ZpoolName::new_external(config.disks[0].pool_id);
let dataset_name =
DatasetName::new(zpool_name.clone(), DatasetType::Crucible);
DatasetName::new(zpool_name.clone(), DatasetKind::Crucible);
harness
.handle()
.upsert_filesystem(dataset_id, dataset_name)
Expand Down

0 comments on commit 178e20e

Please sign in to comment.