Skip to content

Commit

Permalink
Auto merge of #15921 - Young-Flash:tmp, r=Veykril
Browse files Browse the repository at this point in the history
chore: add use case for `PathSegment::qualifying_trait`

add use case for `PathSegment::qualifying_trait`, which introduced in #15875
  • Loading branch information
bors committed Nov 21, 2023
2 parents 91b3148 + 1cbda61 commit 4513651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ide-assists/src/handlers/unqualify_method_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ fn add_import(
) {
if let Some(path_segment) = qualifier.segment() {
// for `<i32 as std::ops::Add>`
let path_type = path_segment.syntax().children().filter_map(ast::PathType::cast).last();
let path_type = path_segment.qualifying_trait();
let import = match path_type {
Some(it) => {
if let Some(path) = it.path() {
Expand Down

0 comments on commit 4513651

Please sign in to comment.