Fix warnings/errors now that AsyncAppContext::update returns Result

This commit is contained in:
Antonio Scandurra 2023-04-18 14:58:57 +02:00
parent 31e6bb4fc1
commit d03c431f9a
33 changed files with 494 additions and 371 deletions

View file

@ -13,7 +13,7 @@ use std::{
Arc,
},
};
use util::post_inc;
use util::{post_inc, ResultExt};
use workspace::Workspace;
pub struct FileFinder {
@ -186,7 +186,8 @@ impl FileFinder {
let did_cancel = cancel_flag.load(atomic::Ordering::Relaxed);
this.update(&mut cx, |this, cx| {
this.set_matches(search_id, did_cancel, query, matches, cx)
});
})
.log_err();
})
}