diff options
author | Lukas Wirth <[email protected]> | 2020-09-03 13:38:34 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2020-09-03 17:36:08 +0100 |
commit | 98e2f674e9e736720d1cd0a5b8c24e1fb10f64a1 (patch) | |
tree | ff50bd1b83004a247acd359498f75b775a441a66 /crates/assists/src/handlers | |
parent | c1925df7fc91a171925ecb59b9f1895ee59ce72f (diff) |
Fix inserting imports in front of inner attributes
Diffstat (limited to 'crates/assists/src/handlers')
-rw-r--r-- | crates/assists/src/handlers/replace_qualified_name_with_use.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/assists/src/handlers/replace_qualified_name_with_use.rs b/crates/assists/src/handlers/replace_qualified_name_with_use.rs index 56e85125d..597bc268c 100644 --- a/crates/assists/src/handlers/replace_qualified_name_with_use.rs +++ b/crates/assists/src/handlers/replace_qualified_name_with_use.rs | |||
@@ -348,9 +348,9 @@ use std::fmt::{Debug, nested::{self, Display}}; | |||
348 | impl std::fmt::nested<|> for Foo { | 348 | impl std::fmt::nested<|> for Foo { |
349 | } | 349 | } |
350 | ", | 350 | ", |
351 | // FIXME(veykril): self is being pulled out for some reason now | 351 | // FIXME(veykril): nested is duplicated now |
352 | r" | 352 | r" |
353 | use std::fmt::{Debug, nested::{Display}, nested}; | 353 | use std::fmt::{Debug, nested::{self, Display}, nested}; |
354 | 354 | ||
355 | impl nested for Foo { | 355 | impl nested for Foo { |
356 | } | 356 | } |
@@ -518,6 +518,7 @@ fn main() { | |||
518 | ", | 518 | ", |
519 | r" | 519 | r" |
520 | #![allow(dead_code)] | 520 | #![allow(dead_code)] |
521 | |||
521 | use std::fmt::Debug; | 522 | use std::fmt::Debug; |
522 | 523 | ||
523 | fn main() { | 524 | fn main() { |