Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 8886e8f

Browse files
authored
Merge pull request #593 from sinkuu/fmt_warnings
Ignore formatting errors
2 parents 4b655df + a089d63 commit 8886e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/requests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ fn reformat(
881881
match format_input(input, &config, Some(&mut buf)) {
882882
Ok((summary, ..)) => {
883883
// format_input returns Ok even if there are any errors, i.e., parsing errors.
884-
if summary.has_no_errors() {
884+
if !summary.has_operational_errors() && !summary.has_parsing_errors() {
885885
// Note that we don't need to update the VFS, the client
886886
// echos back the change to us.
887887
let text = String::from_utf8(buf).unwrap();

0 commit comments

Comments
 (0)