From f8a056117898c56d34d1758455bc54df50e2e426 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 6 Jan 2021 20:43:46 +0300 Subject: Align config's API with usage The config now is mostly immutable, optimize for that. --- crates/completion/src/completions/postfix/format_like.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'crates/completion/src/completions/postfix') 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 @@ // + `logw` -> `log::warn!(...)` // + `loge` -> `log::error!(...)` -use crate::{ - completions::postfix::postfix_snippet, config::SnippetCap, context::CompletionContext, - Completions, -}; +use ide_db::helpers::SnippetCap; use syntax::ast::{self, AstToken}; +use crate::{completions::postfix::postfix_snippet, context::CompletionContext, Completions}; + /// Mapping ("postfix completion item" => "macro to use") static KINDS: &[(&str, &str)] = &[ ("format", "format!"), -- cgit v1.2.3