Skip to content

Commit 2950b89

Browse files
committed
oops, use correct error type
1 parent 0ab6a8c commit 2950b89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp-linter/src/clang_tools/clang_tidy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ pub fn run_clang_tidy(
301301
} else {
302302
cmd.arg("--fix-errors");
303303
Some(
304-
fs::read_to_string(&file.name).map_err(|e| ClangCaptureError::WriteFileFailed {
304+
fs::read_to_string(&file.name).map_err(|e| ClangCaptureError::ReadFileFailed {
305305
file_name: file_name.clone(),
306306
source: e,
307307
})?,

0 commit comments

Comments
 (0)