Fix warnings surfaced in Rust 1.71

This commit is contained in:
Max Brunsfeld 2023-08-02 09:19:23 -07:00
parent 4c7d60ed13
commit a127b0d3e6
7 changed files with 5 additions and 9 deletions

View file

@ -93,7 +93,7 @@ fn search_submit(workspace: &mut Workspace, _: &SearchSubmit, cx: &mut ViewConte
pane.update(cx, |pane, cx| {
if let Some(search_bar) = pane.toolbar().read(cx).item_of_type::<BufferSearchBar>() {
search_bar.update(cx, |search_bar, cx| {
let mut state = &mut vim.state.search;
let state = &mut vim.state.search;
let mut count = state.count;
// in the case that the query has changed, the search bar