We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--stdin
1 parent 099f89f commit b5c60d8Copy full SHA for b5c60d8
src/main.rs
@@ -21,7 +21,7 @@ fn main() -> Result<(), Box<dyn Error>> {
21
if cli.stdin {
22
let mut source = String::new();
23
std::io::stdin().read_to_string(&mut source).expect("failed read source from stdin");
24
- println!("{}", source);
+ println!("{}", format(&source).expect("failed to format source"));
25
} else {
26
process_files(cli.file)?;
27
}
0 commit comments