longlines/longlines.rs
1use line_diff::{compare_lines, Config};
2
3use std::error;
4use std::path::PathBuf;
5
6type Result<T> = std::result::Result<T, Box<dyn error::Error>>;
7
8fn main() -> Result<()> {
9 println!("Example with using a single file containing two lines");
10 let config = Config::from_file(
11 false,
12 false,
13 vec![' '],
14 PathBuf::from("examples/long-lines.txt"),
15 );
16 println!("{:?}", config);
17 compare_lines(config)
18}