Use Arc<Context> instead of &Context

&'ctx Context borrowing causes a problem

let host = PageLockedMemory::new(self.get_context(), 12);  // immutable ref to self
self[0] = 1.0;                                             // Cannot!

Context is always immutable, and this borrow check is too mach

Edited by termoshtt

Merge request reports

Loading