generated from PlexSheep/rs-base
Compare commits
No commits in common. "f9c164b21f3c087ffaa6cc73c22c393b733a8634" and "f4d7d6bc72aa0ccdd98738e37c754f4a69676182" have entirely different histories.
f9c164b21f
...
f4d7d6bc72
1 changed files with 7 additions and 4 deletions
11
src/main.rs
11
src/main.rs
|
@ -99,10 +99,13 @@ fn main() {
|
|||
let mut config = Hedu::new(cli.chars, cli.skip, cli.show_identical, cli.limit);
|
||||
// FIXME: find a better way to get the file name
|
||||
// Currently, skipped sources make an extra newline here.
|
||||
if config.chars {
|
||||
println!("{:─^80}", format!(" {} ", cli.data_source[i]));
|
||||
} else {
|
||||
println!("{:─^59}", format!(" {} ", cli.data_source[i]));
|
||||
match config.chars {
|
||||
false => {
|
||||
println!("{:─^59}", format!(" {} ", cli.data_source[i]));
|
||||
}
|
||||
true => {
|
||||
println!("{:─^80}", format!(" {} ", cli.data_source[i]));
|
||||
}
|
||||
}
|
||||
match config.dump(&mut **source) {
|
||||
Ok(()) => (),
|
||||
|
|
Reference in a new issue