diff --git a/compiler/noirc_frontend/src/hir/type_check/stmt.rs b/compiler/noirc_frontend/src/hir/type_check/stmt.rs index 8afb134fb9c..69363d5f00a 100644 --- a/compiler/noirc_frontend/src/hir/type_check/stmt.rs +++ b/compiler/noirc_frontend/src/hir/type_check/stmt.rs @@ -260,9 +260,7 @@ impl<'interner> TypeChecker<'interner> { Type::Error => Type::Error, Type::String(_) => { let (_lvalue_name, lvalue_span) = self.get_lvalue_name_and_span(&lvalue); - self.errors.push(TypeCheckError::StringIndexAssign { - span: lvalue_span, - }); + self.errors.push(TypeCheckError::StringIndexAssign { span: lvalue_span }); Type::Error } other => {