Skip to content

Commit b5c60d8

Browse files
committed
Fix --stdin not do format #31
1 parent 099f89f commit b5c60d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fn main() -> Result<(), Box<dyn Error>> {
2121
if cli.stdin {
2222
let mut source = String::new();
2323
std::io::stdin().read_to_string(&mut source).expect("failed read source from stdin");
24-
println!("{}", source);
24+
println!("{}", format(&source).expect("failed to format source"));
2525
} else {
2626
process_files(cli.file)?;
2727
}

0 commit comments

Comments
 (0)