Satisfy clippy.
This commit is contained in:
@@ -107,7 +107,7 @@ impl Engine {
|
||||
#[inline]
|
||||
pub fn compile_file_with_scope(&self, scope: &Scope, path: PathBuf) -> RhaiResultOf<AST> {
|
||||
Self::read_file(&path).and_then(|contents| {
|
||||
let mut ast = self.compile_with_scope(scope, &contents)?;
|
||||
let mut ast = self.compile_with_scope(scope, contents)?;
|
||||
ast.set_source(path.to_string_lossy().as_ref());
|
||||
Ok(ast)
|
||||
})
|
||||
|
Reference in New Issue
Block a user