diff --git a/src/main.rs b/src/main.rs index 5b3f5e7..ff5db3e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,7 +21,7 @@ fn main() -> Result<(), Box> { if cli.stdin { let mut source = String::new(); std::io::stdin().read_to_string(&mut source).expect("failed read source from stdin"); - println!("{}", source); + println!("{}", format(&source).expect("failed to format source")); } else { process_files(cli.file)?; }