diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-01-06 18:27:02 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-01-06 18:27:02 +0000 |
commit | 959406aeb5379024bd7b2143688cfa07e073fc99 (patch) | |
tree | 429e2c7284476213432b66b02ab9b76f6525eb92 /crates/completion/src/completions/postfix | |
parent | 7ae4b8bdb62735ee767dff25ce1485ae8bffe199 (diff) | |
parent | f8a056117898c56d34d1758455bc54df50e2e426 (diff) |
Merge #7186
7186: Align config's API with usage r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/completion/src/completions/postfix')
-rw-r--r-- | crates/completion/src/completions/postfix/format_like.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/completion/src/completions/postfix/format_like.rs b/crates/completion/src/completions/postfix/format_like.rs index def4b13fb..3afc63021 100644 --- a/crates/completion/src/completions/postfix/format_like.rs +++ b/crates/completion/src/completions/postfix/format_like.rs | |||
@@ -14,12 +14,11 @@ | |||
14 | // + `logw` -> `log::warn!(...)` | 14 | // + `logw` -> `log::warn!(...)` |
15 | // + `loge` -> `log::error!(...)` | 15 | // + `loge` -> `log::error!(...)` |
16 | 16 | ||
17 | use crate::{ | 17 | use ide_db::helpers::SnippetCap; |
18 | completions::postfix::postfix_snippet, config::SnippetCap, context::CompletionContext, | ||
19 | Completions, | ||
20 | }; | ||
21 | use syntax::ast::{self, AstToken}; | 18 | use syntax::ast::{self, AstToken}; |
22 | 19 | ||
20 | use crate::{completions::postfix::postfix_snippet, context::CompletionContext, Completions}; | ||
21 | |||
23 | /// Mapping ("postfix completion item" => "macro to use") | 22 | /// Mapping ("postfix completion item" => "macro to use") |
24 | static KINDS: &[(&str, &str)] = &[ | 23 | static KINDS: &[(&str, &str)] = &[ |
25 | ("format", "format!"), | 24 | ("format", "format!"), |