File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -224,14 +224,14 @@ impl UpstreamBundle {
224
224
pub ( super ) fn update_install ( & mut self , slot_status : & SlotStatus ) {
225
225
let slot_0_is_older = slot_status
226
226
. get ( "rootfs_0" )
227
- . filter ( |r| r. get ( "boot_status" ) . map_or ( false , |b| b == "good" ) )
227
+ . filter ( |r| r. get ( "boot_status" ) . is_some_and ( |b| b == "good" ) )
228
228
. and_then ( |r| r. get ( "bundle_version" ) )
229
229
. and_then ( |v| compare_versions ( & self . version , v) . map ( |c| c. is_gt ( ) ) )
230
230
. unwrap_or ( true ) ;
231
231
232
232
let slot_1_is_older = slot_status
233
233
. get ( "rootfs_1" )
234
- . filter ( |r| r. get ( "boot_status" ) . map_or ( false , |b| b == "good" ) )
234
+ . filter ( |r| r. get ( "boot_status" ) . is_some_and ( |b| b == "good" ) )
235
235
. and_then ( |r| r. get ( "bundle_version" ) )
236
236
. and_then ( |v| compare_versions ( & self . version , v) . map ( |c| c. is_gt ( ) ) )
237
237
. unwrap_or ( true ) ;
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ impl ServiceStatus {
80
80
}
81
81
82
82
#[ cfg( not( feature = "demo_mode" ) ) ]
83
- async fn get < ' a > ( unit : & service:: UnitProxy < ' a > ) -> Result < Self > {
83
+ async fn get ( unit : & service:: UnitProxy < ' _ > ) -> Result < Self > {
84
84
Ok ( Self {
85
85
active_state : unit. active_state ( ) . await ?,
86
86
sub_state : unit. sub_state ( ) . await ?,
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ pub fn run(
211
211
. filter_map( |ch| {
212
212
ch. bundle
213
213
. as_ref( )
214
- . map_or ( false , |b| b. newer_than_installed)
214
+ . is_some_and ( |b| b. newer_than_installed)
215
215
. then_some( ch. url)
216
216
} )
217
217
. collect( ) ;
You can’t perform that action at this time.
0 commit comments