File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ impl AvailableDatasetsReceiver {
475
475
AvailableDatasetsReceiverInner :: FakeStatic ( pools) => pools
476
476
. iter ( )
477
477
. map ( |( pool, path) | PathInPool {
478
- pool : ZpoolOrRamdisk :: Zpool ( pool. clone ( ) ) ,
478
+ pool : ZpoolOrRamdisk :: Zpool ( * pool) ,
479
479
path : path. join ( U2_DEBUG_DATASET ) ,
480
480
} )
481
481
. collect ( ) ,
@@ -498,7 +498,7 @@ impl AvailableDatasetsReceiver {
498
498
AvailableDatasetsReceiverInner :: FakeStatic ( pools) => pools
499
499
. iter ( )
500
500
. map ( |( pool, path) | PathInPool {
501
- pool : ZpoolOrRamdisk :: Zpool ( pool. clone ( ) ) ,
501
+ pool : ZpoolOrRamdisk :: Zpool ( * pool) ,
502
502
path : path. join ( ZONE_DATASET ) ,
503
503
} )
504
504
. collect ( ) ,
Original file line number Diff line number Diff line change @@ -325,9 +325,9 @@ impl InternalDisks {
325
325
& self . mount_config
326
326
}
327
327
328
- pub fn boot_disk_zpool ( & self ) -> Option < & ZpoolName > {
328
+ pub fn boot_disk_zpool ( & self ) -> Option < ZpoolName > {
329
329
self . disks . iter ( ) . find_map ( |d| {
330
- if d. is_boot_disk ( ) { Some ( & d. zpool_name ) } else { None }
330
+ if d. is_boot_disk ( ) { Some ( d. zpool_name ) } else { None }
331
331
} )
332
332
}
333
333
Original file line number Diff line number Diff line change @@ -848,7 +848,9 @@ impl ServiceManager {
848
848
/// - `sidecar_revision`: Rev of attached sidecar, if present.
849
849
/// - `switch_zone_maghemite_links`: List of physical links on which
850
850
/// maghemite should listen.
851
+ /// - `zone_image_resolver`: how to find Omicron zone images
851
852
/// - `internal_disks_rx`: watch channel for changes to internal disks
853
+ #[ allow( clippy:: too_many_arguments) ]
852
854
pub ( crate ) fn new (
853
855
log : & Logger ,
854
856
ddm_reconciler : DdmReconciler ,
Original file line number Diff line number Diff line change @@ -428,8 +428,7 @@ impl SledAgent {
428
428
. internal_disks_rx ( )
429
429
. current ( )
430
430
. boot_disk_zpool ( )
431
- . ok_or_else ( || Error :: BootDiskNotFound ) ?
432
- . clone ( ) ;
431
+ . ok_or_else ( || Error :: BootDiskNotFound ) ?;
433
432
434
433
// Configure a swap device of the configured size before other system setup.
435
434
match config. swap_device_size_gb {
You can’t perform that action at this time.
0 commit comments