refactor: add CanGc as argument to DataBlock::view (#35610)

Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
Yerkebulan Tulibergenov 2025-02-22 16:35:44 -08:00 committed by GitHub
parent b0b0289014
commit dd13342f18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

@ -429,7 +429,7 @@ impl DataBlock {
}
/// Returns error if requested range is already mapped
pub(crate) fn view(&mut self, range: Range<usize>) -> Result<&DataView, ()> {
pub(crate) fn view(&mut self, range: Range<usize>, _can_gc: CanGc) -> Result<&DataView, ()> {
if self
.data_views
.iter()