mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
Fix small bugs in gpui2::test
This commit is contained in:
parent
5651ef7ca2
commit
6185c935a6
@ -7,8 +7,8 @@ use std::{any::Any, future::Future, sync::Arc};
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct TestAppContext {
|
||||
pub(crate) app: Arc<Mutex<AppContext>>,
|
||||
pub(crate) executor: Executor,
|
||||
pub app: Arc<Mutex<AppContext>>,
|
||||
pub executor: Executor,
|
||||
}
|
||||
|
||||
impl Context for TestAppContext {
|
||||
|
@ -170,7 +170,7 @@ pub fn test(args: TokenStream, function: TokenStream) -> TokenStream {
|
||||
let mut #cx_varname = gpui2::TestAppContext::new(
|
||||
dispatcher.clone()
|
||||
);
|
||||
let mut #cx_varname_lock = cx_varname.app.lock();
|
||||
let mut #cx_varname_lock = #cx_varname.app.lock();
|
||||
));
|
||||
inner_fn_args.extend(quote!(&mut #cx_varname_lock,));
|
||||
cx_teardowns.extend(quote!(
|
||||
|
Loading…
Reference in New Issue
Block a user