From e1c345bd1a4d3186d592ac30b0002963c9402f32 Mon Sep 17 00:00:00 2001 From: Iban Eguia Moraza Date: Sun, 30 Jan 2022 11:34:15 +0100 Subject: [PATCH] Fixed formatting errors & false positive with warning --- boa/src/syntax/ast/node/object/mod.rs | 2 +- clippy.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boa/src/syntax/ast/node/object/mod.rs b/boa/src/syntax/ast/node/object/mod.rs index bc7f3771479..3895902323d 100644 --- a/boa/src/syntax/ast/node/object/mod.rs +++ b/boa/src/syntax/ast/node/object/mod.rs @@ -88,7 +88,7 @@ impl Object { } }); } - buf.push_str(&format!("{}}}", indentation)); + buf.push_str(&format!("{}}}", " ".repeat(indent_n))); buf } diff --git a/clippy.toml b/clippy.toml index f727419c41a..01610f39cb8 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1 +1 @@ -doc-valid-idents = ['ECMAScript', 'JavaScript', 'SpiderMonkey'] +doc-valid-idents = ['ECMAScript', 'JavaScript', 'SpiderMonkey', 'GitHub']