This commit is contained in:
wyfcyx 2024-06-30 13:37:59 +00:00
parent 838d0578dd
commit e44cecbb3f

View File

@ -466,7 +466,7 @@
<span class="kw">fn </span>push(<span class="kw-2">&amp;mut </span><span class="self">self</span>, <span class="kw-2">mut </span>map_area: MapArea, data: <span class="prelude-ty">Option</span>&lt;<span class="kw-2">&amp;</span>[u8]&gt;) {
map_area.map(<span class="kw-2">&amp;mut </span><span class="self">self</span>.page_table);
<span class="kw">if let </span><span class="prelude-val">Some</span>(data) = data {
map_area.copy_data(<span class="kw-2">&amp;mut </span><span class="self">self</span>.page_table, data);
map_area.copy_data(<span class="kw-2">&amp;</span><span class="self">self</span>.page_table, data);
}
<span class="self">self</span>.areas.push(map_area);
}