1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-30 12:07:46 +00:00

refactor: remove noisy logging

This commit is contained in:
Kevin Amado 2022-02-21 12:30:34 -05:00
parent 45ad71e6ee
commit aa3d4ccfd8
2 changed files with 1 additions and 20 deletions

View file

@ -180,14 +180,6 @@ fn format(
}
// ${a} (interpolation but for NODE_SELECT)
rnix::SyntaxKind::NODE_DYNAMIC => crate::rules::dynamic::rule,
// implementation detail of rnix-parser
rnix::SyntaxKind::NODE_ERROR => {
eprintln!(
"Warning: found an error node at: {}",
build_ctx.path
);
crate::rules::default
}
// $identifier
rnix::SyntaxKind::NODE_IDENT => crate::rules::default,
// if a then b else c
@ -212,13 +204,7 @@ fn format(
// 1 | true | null
rnix::SyntaxKind::NODE_LITERAL => crate::rules::default,
// let { }
rnix::SyntaxKind::NODE_LEGACY_LET => {
eprintln!(
"Warning: found a `legacy let` expression at: {}",
build_ctx.path
);
crate::rules::default
}
rnix::SyntaxKind::NODE_LEGACY_LET => crate::rules::default,
// a or b
rnix::SyntaxKind::NODE_OR_DEFAULT => {
crate::rules::bin_op_and_or_default::rule

View file

@ -66,8 +66,6 @@ pub fn rule(
})
.collect();
// eprintln!("0: {:?}", lines);
let mut indentation: usize = usize::MAX;
for line in lines.iter() {
let line = line.trim_end();
@ -111,9 +109,6 @@ pub fn rule(
.collect();
}
// eprintln!("1: ''{}''", lines.join("\n"));
// eprintln!("indentation={}, placeholder={}", indentation, placeholder);
for (index, line) in lines.iter().enumerate() {
let portions: Vec<String> = line
.split(&placeholder)