Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Oct 25, 2022
1 parent f6121c7 commit eb475e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl RenderError {
Some(path) => format!("Variable {:?} not found in strict mode.", path),
None => "Value is missing in strict mode".to_owned(),
};
RenderError::new(&msg)
RenderError::new(msg)
}

pub fn from_error<E>(error_info: &str, cause: E) -> RenderError
Expand Down
2 changes: 1 addition & 1 deletion src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ impl<'reg> Registry<'reg> {
.map_err(ScriptError::from)
.and_then(|s| {
let helper = Box::new(ScriptHelper {
script: self.engine.compile(&s)?,
script: self.engine.compile(s)?,
}) as Box<dyn HelperDef + Send + Sync>;
Ok(Some(helper.into()))
})
Expand Down

0 comments on commit eb475e8

Please sign in to comment.