This commit is contained in:
Nathan Sobo 2023-08-03 08:10:16 -06:00
parent 8e36da1382
commit 3c938a7377
3 changed files with 16 additions and 4 deletions

View file

@ -406,6 +406,8 @@ impl BorrowAppContext for TestAppContext {
}
impl BorrowWindowContext for TestAppContext {
type Return<T> = T;
fn read_with<T, F: FnOnce(&WindowContext) -> T>(&self, window_id: usize, f: F) -> T {
self.cx
.borrow()