Fix clippy.
This commit is contained in:
parent
e5b345bca4
commit
0b6657d1b1
@ -240,9 +240,7 @@ impl ModuleResolver for FileModuleResolver {
|
|||||||
file_path.set_extension(&self.extension); // Force extension
|
file_path.set_extension(&self.extension); // Force extension
|
||||||
|
|
||||||
// Load the script file and compile it
|
// Load the script file and compile it
|
||||||
let mut ast = engine
|
let mut ast = engine.compile_file(file_path).map_err(|err| match *err {
|
||||||
.compile_file(file_path.clone())
|
|
||||||
.map_err(|err| match *err {
|
|
||||||
EvalAltResult::ErrorSystem(_, err) if err.is::<IoError>() => {
|
EvalAltResult::ErrorSystem(_, err) if err.is::<IoError>() => {
|
||||||
Box::new(EvalAltResult::ErrorModuleNotFound(path.to_string(), pos))
|
Box::new(EvalAltResult::ErrorModuleNotFound(path.to_string(), pos))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user