chore: clippy fix needless_borrow

This commit is contained in:
quake
2022-07-20 21:16:35 +09:00
parent 87af0db074
commit 299777f1c9
11 changed files with 25 additions and 25 deletions

View File

@@ -90,7 +90,7 @@ pub struct FuncInfo {
impl FuncInfo {
/// Format a return type to be display-friendly.
///
/// `()` is cleared.
/// `()` is cleared.
/// [`RhaiResult`][crate::RhaiResult] and [`RhaiResultOf<T>`] are expanded.
#[cfg(feature = "metadata")]
pub fn format_type(typ: &str, is_return_type: bool) -> std::borrow::Cow<str> {
@@ -1860,7 +1860,7 @@ impl Module {
let orig_constants = std::mem::take(&mut global.constants);
// Run the script
let result = engine.eval_ast_with_scope_raw(&mut scope, global, &ast, 0);
let result = engine.eval_ast_with_scope_raw(&mut scope, global, ast, 0);
// Create new module
let mut module = Module::new();