Compare commits

..

2 commits

Author SHA1 Message Date
f9c164b21f Merge branch 'devel'
Some checks failed
cargo devel CI / cargo CI (push) Successful in 1m3s
Release-plz / Release-plz release (push) Failing after 1m22s
Release-plz / Release-plz PR (push) Failing after 1m29s
2024-10-16 19:54:49 +02:00
ee1b849c1b refactor: replace a match on a boolean with an if
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m21s
2024-10-16 09:32:23 +02:00

View file

@ -99,13 +99,10 @@ fn main() {
let mut config = Hedu::new(cli.chars, cli.skip, cli.show_identical, cli.limit); let mut config = Hedu::new(cli.chars, cli.skip, cli.show_identical, cli.limit);
// FIXME: find a better way to get the file name // FIXME: find a better way to get the file name
// Currently, skipped sources make an extra newline here. // Currently, skipped sources make an extra newline here.
match config.chars { if config.chars {
false => {
println!("{:─^59}", format!(" {} ", cli.data_source[i]));
}
true => {
println!("{:─^80}", format!(" {} ", cli.data_source[i])); println!("{:─^80}", format!(" {} ", cli.data_source[i]));
} } else {
println!("{:─^59}", format!(" {} ", cli.data_source[i]));
} }
match config.dump(&mut **source) { match config.dump(&mut **source) {
Ok(()) => (), Ok(()) => (),