Merge pull request #1385 from zed-industries/fix-lifetime-error

Fix spurious borrow checker error
This commit is contained in:
Antonio Scandurra 2022-07-18 12:22:54 +02:00 committed by GitHub
commit 0aafc78eb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -443,7 +443,7 @@ async fn test_outline(cx: &mut gpui::TestAppContext) {
async fn search<'a>(
outline: &'a Outline<Anchor>,
query: &str,
query: &'a str,
cx: &'a gpui::TestAppContext,
) -> Vec<(&'a str, Vec<usize>)> {
let matches = cx