Explorar o código

Rename new_levels to with_levels

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
greatbridf hai 8 meses
pai
achega
894cfb4efc
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      crates/eonix_mm/src/page_table/pte_iterator.rs

+ 2 - 2
crates/eonix_mm/src/page_table/pte_iterator.rs

@@ -100,10 +100,10 @@ where
     }
 
     pub fn new(page_table: M::RawTable<'a>, range: VRange, alloc: A) -> Self {
-        Self::new_levels(page_table, range, alloc, M::LEVELS)
+        Self::with_levels(page_table, range, alloc, M::LEVELS)
     }
 
-    pub fn new_levels(page_table: M::RawTable<'a>, range: VRange, alloc: A, levels: &'static [PageTableLevel]) -> Self {
+    pub fn with_levels(page_table: M::RawTable<'a>, range: VRange, alloc: A, levels: &'static [PageTableLevel]) -> Self {
         let start = range.start().floor();
         let end = range.end().ceil();