This commit is contained in:
Aleksey Kladov 2020-11-30 13:45:32 +03:00
parent 6f51f728a1
commit 02955661a0

View file

@ -24,7 +24,7 @@ impl Params {
}
impl Builder {
pub(super) fn should_add_parems(&self, ctx: &CompletionContext) -> bool {
fn should_add_parens(&self, ctx: &CompletionContext) -> bool {
if !ctx.config.add_call_parenthesis {
return false;
}
@ -58,7 +58,7 @@ impl Builder {
name: String,
params: Params,
) -> Builder {
if !self.should_add_parems(ctx) {
if !self.should_add_parens(ctx) {
return self;
}