Fix clippy lints (#4262)

* Fix clippy lints

* Fix clippy lints

* Fix clippy lints
This commit is contained in:
JT
2022-01-18 07:33:28 -05:00
committed by GitHub
parent e6c09f2dfc
commit f562a4526c
11 changed files with 16 additions and 17 deletions

View File

@ -75,7 +75,7 @@ fn find_source_file(
let path = canonicalize(&file).map_err(|e| {
ParseError::general_error(
format!("Can't load source file. Reason: {}", e.to_string()),
format!("Can't load source file. Reason: {}", e),
"Can't load this file".spanned(file_span),
)
})?;
@ -85,7 +85,7 @@ fn find_source_file(
match contents {
Ok(contents) => parse(&contents, 0, scope),
Err(e) => Err(ParseError::general_error(
format!("Can't load source file. Reason: {}", e.to_string()),
format!("Can't load source file. Reason: {}", e),
"Can't load this file".spanned(file_span),
)),
}