Fix clippy and compiler warings

This commit is contained in:
Jianfeng Jiang
2023-09-04 11:04:42 +08:00
committed by Tate, Hongliang Tian
parent 20a90426a0
commit 9ca64c281e
156 changed files with 539 additions and 603 deletions

View File

@ -230,7 +230,7 @@ impl VmoInner {
}
fn should_share_frame_with_parent(&self, write_page: bool) -> bool {
!self.is_cow || (self.is_cow && !write_page)
!self.is_cow || !write_page
}
}
@ -343,7 +343,7 @@ impl Vmo_ {
}
pub fn flags(&self) -> VmoFlags {
self.flags.clone()
self.flags
}
}