Browse Source

Don't indent comments by a scope

They are already at the correct indent before adding another scope.
Isaac Woods 4 years ago
parent
commit
f34b423816
1 changed files with 1 additions and 1 deletions
  1. 1 1
      aml/src/parser.rs

+ 1 - 1
aml/src/parser.rs

@@ -12,7 +12,7 @@ impl AmlContext {
     /// so it's most convenient to have this method on `AmlContext`.
     pub(crate) fn comment(&self, verbosity: DebugVerbosity, message: &str) {
         if verbosity <= self.debug_verbosity {
-            log::trace!("{:indent$}{}", "", message, indent = self.scope_indent + INDENT_PER_SCOPE);
+            log::trace!("{:indent$}{}", "", message, indent = self.scope_indent);
         }
     }
 }