Rust 1.78 (#11314)
Notable things I've had to fix due to 1.78: - Better detection of unused items - New clippy lint (`assigning_clones`) that points out places where assignment operations with clone rhs could be replaced with more performant `clone_into` Release Notes: - N/A
This commit is contained in:
parent
9ec0927701
commit
1a9b0536a2
41 changed files with 49 additions and 433 deletions
|
@ -426,10 +426,6 @@ impl ToolbarItemView for BufferSearchBar {
|
|||
}
|
||||
ToolbarItemLocation::Hidden
|
||||
}
|
||||
|
||||
fn row_count(&self, _: &WindowContext<'_>) -> usize {
|
||||
1
|
||||
}
|
||||
}
|
||||
|
||||
impl BufferSearchBar {
|
||||
|
|
|
@ -1629,15 +1629,6 @@ impl ToolbarItemView for ProjectSearchBar {
|
|||
ToolbarItemLocation::Hidden
|
||||
}
|
||||
}
|
||||
|
||||
fn row_count(&self, cx: &WindowContext<'_>) -> usize {
|
||||
if let Some(search) = self.active_project_search.as_ref() {
|
||||
if search.read(cx).filters_enabled {
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
1
|
||||
}
|
||||
}
|
||||
|
||||
fn register_workspace_action<A: Action>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue