1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00

fix: linting errors

This commit is contained in:
Marvin Hagemeister 2023-12-08 10:49:26 +01:00
parent ee03656d9c
commit af16ef7ff0
2 changed files with 6 additions and 6 deletions

View file

@ -94,7 +94,7 @@ pub fn err_invalid_package_target(
}
pub fn err_missing_declaration_file(
path: &PathBuf,
path: &Path,
package_json_path: &Path,
subpath: &str,
) -> AnyError {
@ -102,7 +102,7 @@ pub fn err_missing_declaration_file(
"[TS7016] Could not find a declaration file for subpath {} in {}. {} implicitly has an 'any' type.",
subpath,
&package_json_path.display(),
&path.display()
path.display()
);
generic_error(msg)

View file

@ -793,8 +793,8 @@ impl NodeResolver {
} else {
Err(throw_missing_declaration_file(
&path,
&package_json_path,
&package_subpath,
package_json_path,
package_subpath,
))
}
} else {
@ -1469,11 +1469,11 @@ fn throw_invalid_package_target(
}
fn throw_missing_declaration_file(
path: &PathBuf,
path: &Path,
package_json_path: &Path,
subpath: &str,
) -> AnyError {
errors::err_missing_declaration_file(&path, &package_json_path, &subpath)
errors::err_missing_declaration_file(path, package_json_path, subpath)
}
fn throw_invalid_subpath(