Skip to content

Commit

Permalink
Bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Dec 7, 2021
1 parent 9ae3158 commit 9a624ab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/ide_assists/src/handlers/extract_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ impl FunctionBody {
.statements()
.map(|stmt| stmt.syntax().text_range())
.filter(|&stmt| selected.intersect(stmt).filter(|it| !it.is_empty()).is_some())
.fold1(|acc, stmt| acc.cover(stmt));
.reduce(|acc, stmt| acc.cover(stmt));
if let Some(tail_range) = parent
.tail_expr()
.map(|it| it.syntax().text_range())
Expand Down
3 changes: 1 addition & 2 deletions crates/ide_assists/src/handlers/unmerge_use.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use itertools::Itertools;
use syntax::{
ast::{self, make, HasVisibility},
ted::{self, Position},
Expand Down Expand Up @@ -70,7 +69,7 @@ fn resolve_full_path(tree: &ast::UseTree) -> Option<ast::Path> {
.filter_map(ast::UseTree::cast)
.filter_map(|t| t.path());

let final_path = paths.fold1(|prev, next| make::path_concat(next, prev))?;
let final_path = paths.reduce(|prev, next| make::path_concat(next, prev))?;
if final_path.segment().map_or(false, |it| it.self_token().is_some()) {
final_path.qualifier()
} else {
Expand Down

0 comments on commit 9a624ab

Please sign in to comment.