Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
scPointer committed Mar 19, 2024
1 parent e8beca2 commit ef68b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/page_table/src/bits64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ impl<M: PagingMetaData, PTE: GenericPTE, IF: PagingIf> PageTable64<M, PTE, IF> {
) -> PagingResult<PageSize> {
let (entry, size) = self.get_entry_mut(vaddr)?;
if entry.paddr() == 0.into() {
return Ok(size)
return Ok(size);
}
if let Some(paddr) = paddr {
entry.set_paddr(paddr);
Expand Down

0 comments on commit ef68b1b

Please sign in to comment.