Skip to content

Commit

Permalink
Fix --stdin not do format #31
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee committed Apr 5, 2024
1 parent 099f89f commit b5c60d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn main() -> Result<(), Box<dyn Error>> {
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)?;
}
Expand Down

0 comments on commit b5c60d8

Please sign in to comment.