mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 10:23:23 +00:00
Fix clippy and compiler warings
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
20a90426a0
commit
9ca64c281e
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user