Skip to content

Commit

Permalink
v0.1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
loliGothicK committed Jul 4, 2021
1 parent 83cd4da commit 35cc3df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 25 deletions.
16 changes: 4 additions & 12 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7957,15 +7957,10 @@ See https://github.com/actions-rs/clippy-check/issues/2 for details.`);
end_line: contents.original_begin_line,
annotation_level: 'warning',
title: 'rustfmt check',
message: '```diff\n' +
`${contents.original
.split('\n')
.map(line => '-' + line)
.join('\n')}` +
`${contents.expected
.split('\n')
.map(line => '+' + line)
.join('\n')}` +
message: 'Original:\n```\n' +
`${contents.original}` +
'\n```\nExpected:\n```\n' +
`${contents.expected}` +
'\n```',
};
if (contents.original_begin_line == contents.original_begin_line) {
Expand Down Expand Up @@ -8006,9 +8001,6 @@ async function run(actionInput) {
stdout: (buffer) => (rustfmtVersion = buffer.toString().trim()),
},
});
console.log(rustcVersion);
console.log(cargoVersion);
console.log(rustfmtVersion);
let flags = ['--message-format=json'];
actionInput.flags
.filter(flag => !flag.startsWith('--message-format'))
Expand Down
13 changes: 4 additions & 9 deletions src/check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,10 @@ See https://github.com/actions-rs/clippy-check/issues/2 for details.`);
annotation_level: 'warning',
title: 'rustfmt check',
message:
'```diff\n' +
`${contents.original
.split('\n')
.map(line => '-' + line)
.join('\n')}` +
`${contents.expected
.split('\n')
.map(line => '+' + line)
.join('\n')}` +
'Original:\n```\n' +
`${contents.original}` +
'\n```\nExpected:\n```\n' +
`${contents.expected}` +
'\n```',
};

Expand Down
4 changes: 0 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ export async function run(actionInput: input.Input): Promise<Result<void, string
},
});

console.log(rustcVersion);
console.log(cargoVersion);
console.log(rustfmtVersion);

let flags = ['--message-format=json'];
actionInput.flags
.filter(flag => !flag.startsWith('--message-format'))
Expand Down

0 comments on commit 35cc3df

Please sign in to comment.