Skip to content

Commit 9a624ab

Browse files
committed
Bump deps
1 parent 9ae3158 commit 9a624ab

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

Cargo.lock

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/ide_assists/src/handlers/extract_function.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ impl FunctionBody {
480480
.statements()
481481
.map(|stmt| stmt.syntax().text_range())
482482
.filter(|&stmt| selected.intersect(stmt).filter(|it| !it.is_empty()).is_some())
483-
.fold1(|acc, stmt| acc.cover(stmt));
483+
.reduce(|acc, stmt| acc.cover(stmt));
484484
if let Some(tail_range) = parent
485485
.tail_expr()
486486
.map(|it| it.syntax().text_range())

crates/ide_assists/src/handlers/unmerge_use.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
use itertools::Itertools;
21
use syntax::{
32
ast::{self, make, HasVisibility},
43
ted::{self, Position},
@@ -70,7 +69,7 @@ fn resolve_full_path(tree: &ast::UseTree) -> Option<ast::Path> {
7069
.filter_map(ast::UseTree::cast)
7170
.filter_map(|t| t.path());
7271

73-
let final_path = paths.fold1(|prev, next| make::path_concat(next, prev))?;
72+
let final_path = paths.reduce(|prev, next| make::path_concat(next, prev))?;
7473
if final_path.segment().map_or(false, |it| it.self_token().is_some()) {
7574
final_path.qualifier()
7675
} else {

0 commit comments

Comments
 (0)