Allow using context in the placeholder_text method

This commit is contained in:
Kirill Bulatov
2024-02-25 00:08:57 +02:00
committed by Kirill Bulatov
parent cf3b875922
commit c29ea9bdbc
17 changed files with 24 additions and 22 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ impl BranchListDelegate {
impl PickerDelegate for BranchListDelegate {
type ListItem = ListItem;
fn placeholder_text(&self) -> Arc<str> {
fn placeholder_text(&self, _cx: &mut WindowContext) -> Arc<str> {
"Select branch...".into()
}