Even less clones
This commit is contained in:
parent
afcfd0979a
commit
40084aa94c
4 changed files with 4 additions and 11 deletions
|
@ -197,7 +197,7 @@ impl AcpThreadView {
|
|||
notification_subscriptions: HashMap::default(),
|
||||
diff_editors: Default::default(),
|
||||
terminal_views: Default::default(),
|
||||
list_state: list_state.clone(),
|
||||
list_state,
|
||||
last_error: None,
|
||||
auth_task: None,
|
||||
expanded_tool_calls: HashSet::default(),
|
||||
|
|
|
@ -799,7 +799,7 @@ impl ActiveThread {
|
|||
expanded_tool_uses: HashMap::default(),
|
||||
expanded_thinking_segments: HashMap::default(),
|
||||
expanded_code_blocks: HashMap::default(),
|
||||
list_state: list_state.clone(),
|
||||
list_state,
|
||||
editing_message: None,
|
||||
last_error: None,
|
||||
copied_code_block_ids: HashSet::default(),
|
||||
|
|
|
@ -337,7 +337,7 @@ impl ExtensionsPage {
|
|||
|
||||
let mut this = Self {
|
||||
workspace: workspace.weak_handle(),
|
||||
list: scroll_handle.clone(),
|
||||
list: scroll_handle,
|
||||
is_fetching_extensions: false,
|
||||
filter: ExtensionFilter::All,
|
||||
dev_extension_entries: Vec::new(),
|
||||
|
|
|
@ -36,8 +36,6 @@ use settings::watch_config_file;
|
|||
use smol::stream::StreamExt as _;
|
||||
use ui::Navigable;
|
||||
use ui::NavigableEntry;
|
||||
use ui::ScrollAxes;
|
||||
use ui::Scrollbars;
|
||||
use ui::WithScrollbar;
|
||||
use ui::{
|
||||
IconButtonShape, List, ListItem, ListSeparator, Modal, ModalHeader, Section, Tooltip,
|
||||
|
@ -1581,12 +1579,7 @@ impl RemoteServerProjects {
|
|||
)
|
||||
.size_full(),
|
||||
)
|
||||
.custom_scrollbars(
|
||||
Scrollbars::new(ScrollAxes::Vertical)
|
||||
.tracked_scroll_handle(state.scroll_handle),
|
||||
window,
|
||||
cx,
|
||||
),
|
||||
.vertical_scrollbar_for(state.scroll_handle.clone(), window, cx),
|
||||
),
|
||||
)
|
||||
.into_any_element()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue