Merge pull request #2400 from zed-industries/fix-breadcrumbs-signature

Fix `ProjectDiagnosticsEditor::breadcrumbs` signature
This commit is contained in:
Antonio Scandurra 2023-04-21 18:06:22 +02:00 committed by GitHub
commit a4fbcbf160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ use std::{
}; };
use util::TryFutureExt; use util::TryFutureExt;
use workspace::{ use workspace::{
item::{Item, ItemEvent, ItemHandle}, item::{BreadcrumbText, Item, ItemEvent, ItemHandle},
ItemNavHistory, Pane, ToolbarItemLocation, Workspace, ItemNavHistory, Pane, ToolbarItemLocation, Workspace,
}; };
@ -654,7 +654,7 @@ impl Item for ProjectDiagnosticsEditor {
Some("diagnostics") Some("diagnostics")
} }
fn breadcrumbs(&self, theme: &theme::Theme, cx: &AppContext) -> Option<Vec<ElementBox>> { fn breadcrumbs(&self, theme: &theme::Theme, cx: &AppContext) -> Option<Vec<BreadcrumbText>> {
self.editor.breadcrumbs(theme, cx) self.editor.breadcrumbs(theme, cx)
} }