File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,19 +78,19 @@ pub trait VhostKernBackend: AsRawFd {
78
78
let used_ring_size = 6 + 8 * u64:: from ( queue_size) as GuestUsize ;
79
79
if GuestAddress ( config_data. desc_table_addr )
80
80
. checked_add ( desc_table_size)
81
- . map_or ( true , |v| !m. address_in_range ( v) )
81
+ . is_none_or ( |v| !m. address_in_range ( v) )
82
82
{
83
83
return false ;
84
84
}
85
85
if GuestAddress ( config_data. avail_ring_addr )
86
86
. checked_add ( avail_ring_size)
87
- . map_or ( true , |v| !m. address_in_range ( v) )
87
+ . is_none_or ( |v| !m. address_in_range ( v) )
88
88
{
89
89
return false ;
90
90
}
91
91
if GuestAddress ( config_data. used_ring_addr )
92
92
. checked_add ( used_ring_size)
93
- . map_or ( true , |v| !m. address_in_range ( v) )
93
+ . is_none_or ( |v| !m. address_in_range ( v) )
94
94
{
95
95
return false ;
96
96
}
You can’t perform that action at this time.
0 commit comments