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']